Replies: 1 comment 4 replies
-
Thank you for reporting this, when using this package we're assuming you have don't have any required function disabled so we don't check for that. We do check if the call has failed but apparently, the return value is different when said function has been disabled: https://github.com/reactphp/socket/blob/1.x/src/TcpServer.php#L170-L188 As you can see in the snipped we capture the error in a different way to throw an exception instead of letting it go to STDERR. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When i use phpstan in my php project, i get error message like this
from TcpServer.php source code i find this code https://github.com/reactphp/socket/blob/1.x/src/TcpServer.php#L170
in my local
php.ini
stream_socket_server
function is disabled, so the$this->master
will beNULL
,stream_socket_server
function be dissabled error message is suppressedWhy use "@" when calling stream_socket_server function? This introduces some additional cost to positioning errors
Beta Was this translation helpful? Give feedback.
All reactions