Skip to content

Commit 16ba677

Browse files
committed
fix
1 parent 8b6978e commit 16ba677

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
@@ -30,7 +30,7 @@ public function producesWarningForFinalPrivateMethods(): TrinaryLogic
3030

3131
public function socketCreateUsesResource(): TrinaryLogic
3232
{
33-
return IntegerRangeType::fromInterval(null, 80000)->isSuperTypeOf($this->phpVersions)->result;
33+
return IntegerRangeType::fromInterval(null, 79999)->isSuperTypeOf($this->phpVersions)->result;
3434
}
3535

3636
}

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)