sirn-se / websocket-php

[php-lib] WebSocket client and server in PHP
Other
117 stars 18 forks source link

PSR-compatible issue #27

Closed bbuugg closed 10 months ago

bbuugg commented 10 months ago

Describe the bug Please provide a clear and concise description of the suspected issue.

Declaration of WebSocket\Connection::setLogger(Psr\Log\LoggerInterface $logger): WebSocket\Connection must be compatible with Psr\Log\LoggerAwareInterface::setLogger(Psr\Log\LoggerInterface $logger): void

The affected file is "Client.php", "Connection.php", "MiddlewareHandler.php" and so on...

Versions

i am using "laravel/framework": "^10.28", the psr/http-message version is 2.0, my php version is 8.2

sirn-se commented 10 months ago

psr/log v3 compability is scheduled for the next major version of this repo, see v3.0 announcement.

laravel/framework requires psr/log: ^1.0|^2.0|^3.0 so it is not incompatible by itself.