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
@var
is ignored
#5086
Comments
This is a better alternative: https://phpstan.org/r/7c339062-4896-44cf-920f-fac8a3272355 |
@mvorisek After the latest commit in dev-master, PHPStan now reports different result with your code snippet: @@ @@
-10: Dumped type: mixed~0|0.0|''|'0'|array()|false|null
+10: Dumped type: mixed~0|0.0|''|'0'|array{}|false|null Full report
|
@mvorisek After the latest push in 1.10.x, PHPStan now reports different result with your code snippet: @@ @@
-10: Dumped type: mixed~0|0.0|''|'0'|array()|false|null
+ 3: Tip: Function xx() always throws an exception, it should have return type "never".
+10: Dumped type: mixed~0|0.0|''|'0'|array{}|false|null Full report
|
@ondrejmirtes After the latest push in 1.10.x, PHPStan now reports different result with your code snippet: @@ @@
+ 3: Tip: Function xx() always throws an exception, it should have return type "never".
7: Negated boolean expression is always false.
11: Dumped type: stdClass Full report
|
@mvorisek After the latest push in 1.11.x, PHPStan now reports different result with your code snippet: @@ @@
-10: Dumped type: object
+10: Dumped type: stdClass Full report
|
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. |
Bug report
Code snippet that reproduces the problem
https://phpstan.org/r/cc2903e8-035e-4331-b4ba-9cd53ccf58b2
Expected output
stdClass
dumped typeThe text was updated successfully, but these errors were encountered: