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/53d182ebc0
psalm/src/Psalm/Internal/Analyzer/Statements/Expression/Fetch/ConstFetchAnalyzer.php
Line 89 in 97e6511
Psalm correctly infers the type for constants
Psalter always has $const_type as NULL for constants from reflection (maybe for others too)
$const_type
Follow-up to #8682
The text was updated successfully, but these errors were encountered:
I found these snippets:
<?php $a = PHP_VERSION_ID; /** @psalm-trace $a */;
Psalm output (using commit 0cd1f13): INFO: Trace - 4:23 - $a: int<1, max>
Sorry, something went wrong.
No branches or pull requests
https://psalm.dev/r/53d182ebc0
psalm/src/Psalm/Internal/Analyzer/Statements/Expression/Fetch/ConstFetchAnalyzer.php
Line 89 in 97e6511
Psalm correctly infers the type for constants
Psalter always has
$const_type
as NULL for constants from reflection (maybe for others too)Follow-up to #8682
The text was updated successfully, but these errors were encountered: