-
Notifications
You must be signed in to change notification settings - Fork 468
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement SocketCreateReturnTypeExtension #3667
base: 2.0.x
Are you sure you want to change the base?
Conversation
48a48c8
to
16ba677
Compare
This pull request has been marked as ready for review. |
src/Php/PhpVersions.php
Outdated
@@ -28,4 +28,9 @@ public function producesWarningForFinalPrivateMethods(): TrinaryLogic | |||
return IntegerRangeType::fromInterval(80000, null)->isSuperTypeOf($this->phpVersions)->result; | |||
} | |||
|
|||
public function socketCreateUsesResource(): TrinaryLogic | |||
{ | |||
return IntegerRangeType::fromInterval(null, 79999)->isSuperTypeOf($this->phpVersions)->result; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd write this as "since 8.0" rather than until "7.9999". So rename this method to what it actually returns since 8.0.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure
broken build is unrelated |
be7173c
to
5fbfc32
Compare
just found https://php.watch/versions/8.0/sockets-sockets-addressinfo which describes all functions which have been changed from |
b0ccacc
to
48543d1
Compare
This pull request has been marked as ready for review. |
48543d1
to
1ef8b62
Compare
php-version dependent
socket_create
handling to ease writing cross php version coderefs phpstan/phpstan#4212
see https://php.watch/versions/8.0/sockets-sockets-addressinfo