Skip to content

Commit

Permalink
fix unrelated Config bug not honoring PHP composer versions 8.2 + 8.3
Browse files Browse the repository at this point in the history
  • Loading branch information
kkmuffme committed Mar 2, 2024
1 parent 496b214 commit 616b903
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Psalm/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -2782,7 +2782,7 @@ public function getPHPVersionFromComposerJson(): ?string

$constraint = $version_parser->parseConstraints($php_version);

foreach (['5.4', '5.5', '5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1'] as $candidate) {
foreach (['5.4', '5.5', '5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3'] as $candidate) {
if ($constraint->matches(new Constraint('<=', "$candidate.0.0-dev"))
|| $constraint->matches(new Constraint('<=', "$candidate.999"))
) {
Expand Down

0 comments on commit 616b903

Please sign in to comment.