Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Saw : outside of object-like array #2935

Closed
vudaltsov opened this issue Mar 7, 2020 · 1 comment
Closed

Saw : outside of object-like array #2935

vudaltsov opened this issue Mar 7, 2020 · 1 comment
Labels

Comments

@vudaltsov
Copy link
Contributor

https://psalm.dev/r/f35b484875

@psalm-github-bot
Copy link

I found these snippets:

https://psalm.dev/r/f35b484875
<?php

/**
 * @template T of object
 */
final class A
{
    /**
     * @psalm-var ?callable(T): bool
     */
    public $filter;
}

/** @psalm-var A<A> */
$a = new A();

if (null !== $a->filter) {}
Psalm encountered an internal error:

/vendor/vimeo/psalm/src/Psalm/Internal/Type/ParseTree.php: Saw : outside of object-like array

@muglug muglug added the bug label Mar 9, 2020
@muglug muglug closed this as completed in a0da735 Mar 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants