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
ReservedWord
https://psalm.dev/r/3c8525e655
https://psalm.dev/r/9d2811b8b0
The text was updated successfully, but these errors were encountered:
I found these snippets:
<?php declare(strict_types=1); namespace Tests\Fixture; final class Test {} final class Test2 {} final class IntersectionParameter { public function __invoke( Test&Test2 $test ): void { unset($test); } }
Psalm output (using commit 08afc45): ERROR: ReservedWord - 13:9 - Parameter cannot be never
<?php declare(strict_types=1); namespace Tests\Fixture; final class Test {} final class Test2 {} final class IntersectionParameter { public function __invoke( Test&Test2 $test ): void { unset($test); } } (new IntersectionParameter())(new Test);
Psalm output (using commit 08afc45): ERROR: InvalidArgument - 20:31 - Argument 1 of Tests\Fixture\IntersectionParameter::__invoke expects never, but Tests\Fixture\Test provided ERROR: ReservedWord - 14:9 - Parameter cannot be never
Sorry, something went wrong.
How can your parameter be both a Test1 and a Test2 when they don't share a parent?
Psalm shouldn't report the ResevedWord here though
ResevedWord
No branches or pull requests
https://psalm.dev/r/3c8525e655
https://psalm.dev/r/9d2811b8b0
The text was updated successfully, but these errors were encountered: