You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
PHP version parsed from composer.json is incorrect when exclusive bounds are used #15777
This is most prominent when with a requirement like 8.4.* where PHPStan detects 8.4-8.5 resulting in \PHPStan\dumpType(\PHP_VERSION_ID); returning int<80400, 80500>.
Code snippet that reproduces the problem
No response
Expected output
{"require": {"php": ">8.2.3 < 8.5.2"}}
Should be detected as 8.2.4-8.5.1.
Did PHPStan help you today? Did it make you happy in any way?
Activity
mergeable commentedon Nov 19, 2026
This bug report is missing a link to reproduction at phpstan.org/try.
It will most likely be closed after manual review.