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
https://psalm.dev/r/56ecd0849f
it seems for consts in the global scope it works as expected
The text was updated successfully, but these errors were encountered:
I found these snippets:
<?php const A = 1; const B = 2; const C = A | B; function main(int $x): void { $x; } main(A); main(C); class x { public const A = 1; public const B = 2; public const C = self::A | self::B; } function main2(int $x): void { $x; } main2(x::A); main2(x::C);
Psalm output (using commit 8926f1d): INFO: MixedArgument - 24:7 - Argument 1 of main2 cannot be mixed, expecting int
Sorry, something went wrong.
Fixed in 17afeae
No branches or pull requests
https://psalm.dev/r/56ecd0849f
it seems for consts in the global scope it works as expected
The text was updated successfully, but these errors were encountered: