We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Commit 3dd185e broke this:
https://psalm.dev/r/7f738e489c
The text was updated successfully, but these errors were encountered:
I found these snippets:
<?php /** * @template T */ interface Functor { /** * @template F * @param callable(T): F $function * @return Functor<F> */ public function map(callable $function): Functor; } /** * @template T * @template-implements Functor<T> */ class FakeFunctor implements Functor { /** * @var T */ private $value; /** * @psalm-param T $value */ public function __construct($value) { $this->value = $value; } public function map(callable $function): Functor { return new FakeFunctor($function($this->value)); } } $foo = new FakeFunctor('foo'); $function = function (string $a): int { return strlen($a); }; /** @psalm-trace $value */ $value = $foo->map($function); // this should be Functor<int>
Psalm output (using commit 5a62dc5): INFO: Trace - 44:1 - $value: Functor INFO: UnusedVariable - 44:1 - Variable $value is never referenced
Sorry, something went wrong.
13b83e6
Fix vimeo#4545 - allow intersections in more places
5219932
No branches or pull requests
Commit 3dd185e broke this:
https://psalm.dev/r/7f738e489c
The text was updated successfully, but these errors were encountered: