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
The code snippets of psalm and phpstan latest version with php 8
https://phpstan.org/r/0d833a50-4967-4faf-941f-007bd8e6736e in psalm no problem https://psalm.dev/r/aec4bc6fc7
OK
The text was updated successfully, but these errors were encountered:
@thepercival After the latest commit in dev-master, PHPStan now reports different result with your code snippet:
@@ @@ -PHP 8.0 (1 error) +PHP 8.0 ========== -14: Cannot call method __toString() on Stringable|null. +No errors PHP 7.1 – 7.4 (3 errors) ==========
No errors
Method HelloWorld::getDescription() uses native union types but they're supported only on PHP 8.0 and later.
Parameter $someObject of method HelloWorld::getDescription() has invalid typehint type stringable.
Call to method __toString() on an unknown class stringable.
Sorry, something went wrong.
Great! Thanks a lot. Also for making this great tool available
Thanks :) Fixed: phpstan/phpstan-src@2c42ef1
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
No branches or pull requests
Bug report
The code snippets of psalm and phpstan latest version with php 8
Code snippet that reproduces the problem
https://phpstan.org/r/0d833a50-4967-4faf-941f-007bd8e6736e
in psalm no problem
https://psalm.dev/r/aec4bc6fc7
Expected output
OK
The text was updated successfully, but these errors were encountered: