Skip to content

Commit 168b08b

Browse files
committed
fix
1 parent b1c6d91 commit 168b08b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Php/PhpVersions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public function producesWarningForFinalPrivateMethods(): TrinaryLogic
3535

3636
public function socketCreateUsesResource(): TrinaryLogic
3737
{
38-
return IntegerRangeType::fromInterval(null, 80000)->isSuperTypeOf($this->phpVersions)->result;
38+
return IntegerRangeType::fromInterval(null, 79999)->isSuperTypeOf($this->phpVersions)->result;
3939
}
4040

4141
public function supportsNamedArguments(): TrinaryLogic

tests/PHPStan/Analyser/nsrt/socket-create.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public function sayHello(): void
1515
}
1616

1717
if (PHP_VERSION_ID >= 80000) {
18-
assertType('Socket|false', socket_create(AF_INET, SOCK_DGRAM, SOL_UDP));
18+
assertType('\Socket|false', socket_create(AF_INET, SOCK_DGRAM, SOL_UDP));
1919
}
2020
}
2121
}

0 commit comments

Comments
 (0)