Closed binemmanuel closed 1 year ago
Thanks
This change makes it incompatible with versions smaller than 8.0, I believe that is not your intention @walkor.
ERROR: E_PARSE "syntax error, unexpected '|', expecting ';' or '{' in /var/www/vendor/workerman/phpsocket.io/src/Engine/Protocols/WebSocket/RFC6455.php on line 47"
Where:
public static function input(string $buffer, ConnectionInterface $connection): bool|int
Union Types is functional in versions >= 8.0.
After removing this, there will be other problems:
Perhaps this should be revised?
If you have this break to be compatible with => 8.0, could a version 2 be released?
The same way it was done with workerman/workerman.
Thank you for your attention, hug.
Thanks @walkor.
Compatibility issues on PHP 8.1.13 fixed