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

No errors reported when setting explicit type of function argument as mixed with phpVersion set to 70400 #5206

Open
tspencer244 opened this issue Jun 23, 2021 · 0 comments

Comments

@tspencer244
Copy link

tspencer244 commented Jun 23, 2021

Bug report

Using mixed as explicit type with function argument on PHP 7.4 is not reported as an error.

Configuration file has phpVersion option set to 70400.

Code snippet that reproduces the problem

https://phpstan.org/r/d86d4cdd-b7ee-4f2b-a5cb-1a0d4ced3bb5

Expected output

Parameter $mixed of anonymous function has invalid typehint type mixed.

Did PHPStan help you today? Did it make you happy in any way?

PHPStan has helped me today to add a lot more clarity and confidence to old PHP code that would otherwise be scary to make changes in 🙂

It always makes me feel happy to fix all of the errors that PHPStan reports, and to bring new files into our existing PHPStan coverage at the strictest level 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants