PHP 8.4: Implicitly nullable parameters deprecated#158
PHP 8.4: Implicitly nullable parameters deprecated#158mbonneau merged 5 commits intoratchetphp:masterfrom
Conversation
Update functions.php
|
@cboden do you mind reviewing this? Do you plan to continue maintaining this project or should we fork it? |
|
Another developer has stated they are considering dropping safe altogether as PHPStan is enough. shish/safe also seems to be maintained as an alternative package. |
|
@danepowell I will take a look at this PR and ratchetphp/RFC6455#71 Right now, composer has a minimum PHP version at 5.4. Adding the explicit nullable parameter will require a minimum version bump to 7.1. I have no problem changing the minimum version as long as it is good with @cboden. |
|
Would be great to see some motion here... |
Conaidering it involve version unsupported for ages, these shouldn't stopped from supporting modern versions. People stuck many years behind should have locked their old composer file anyway. |
|
FWIW |
|
ok @cboden now when there is a new version of https://github.com/ratchetphp/RFC6455, can you please accept this? thank you. |
|
@valzargaming can you please change ratchet/rfc6455 to 0.4 ? |
|
@valzargaming can you also merge actual master branch? because now it's crashing due to error Fatal error: Uncaught ArgumentCountError: Too few arguments to function Ratchet\RFC6455\Handshake\ClientNegotiator::__construct(), 0 passed in /var/www/html/vendor/ratchet/pawl/src/Connector.php on line 28 and at least 1 expected in /var/www/html/vendor/ratchet/rfc6455/src/Handshake/ClientNegotiator.php:15 which was probably fixed here https://github.com/ratchetphp/Pawl/commits/master/ |
|
yep... perfect, seems working like a charm... and even tests passed... |
|
Thanks @valzargaming |
Implicitly marking parameters as nullable is deprecated, the explicit nullable type must be used instead