Skip to content

Commit 9c2fd64

Browse files
committed
fix
1 parent 5f4bcfe commit 9c2fd64

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Analyser/ConstantResolver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
final class ConstantResolver
3535
{
3636

37-
public const int PHP_MIN_VERSION_ID = 50207;
37+
public const PHP_MIN_VERSION_ID = 50207;
3838

3939
/** @var array<string, true> */
4040
private array $currentlyResolving = [];

src/Analyser/MutatingScope.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6238,7 +6238,7 @@ public function getPhpVersion(): PhpVersions
62386238
$minPhpVersion = IntegerRangeType::fromInterval(ConstantResolver::PHP_MIN_VERSION_ID, null);
62396239

62406240
$constType = $this->getGlobalConstantType(new Name('PHP_VERSION_ID'));
6241-
if ($constType !== null && !$minPhpVersion->isSuperTypeOf($constType)->yes()) {
6241+
if ($constType !== null && !$constType->isSuperTypeOf($minPhpVersion)->yes()) {
62426242
return new PhpVersions($constType);
62436243
}
62446244

0 commit comments

Comments
 (0)