Skip to content

Update code to remove PHP Deprecated warnings #1379

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

Closed
mhv666 opened this issue Mar 25, 2025 · 3 comments
Closed

Update code to remove PHP Deprecated warnings #1379

mhv666 opened this issue Mar 25, 2025 · 3 comments

Comments

@mhv666
Copy link

mhv666 commented Mar 25, 2025

I just update to 8.4 and a lot of deprecated warnings appear:

PHP Deprecated: Enqueue\SimpleClient\SimpleClient::__construct(): Implicitly marking parameter $logger as nullable is deprecated, the explicit nullable type must be used instead in /var/www/vendor/enqueue/simple-client/SimpleClient.php on line 120 PHP Deprecated: Enqueue\SimpleClient\SimpleClient::bindTopic(): Implicitly marking parameter $processorName as nullable is deprecated, the explicit nullable type must be used instead in /var/www/vendor/enqueue/simple-client/SimpleClient.php on line 137 PHP Deprecated: Enqueue\SimpleClient\SimpleClient::bindCommand(): Implicitly marking parameter $processorName as nullable is deprecated, the explicit nullable type must be used instead in /var/www/vendor/enqueue/simple-client/SimpleClient.php on line 156 PHP Deprecated: Enqueue\SimpleClient\SimpleClient::consume(): Implicitly marking parameter $runtimeExtension as nullable is deprecated, the explicit nullable type must be used instead in /var/www/vendor/enqueue/simple-client/SimpleClient.php on line 188 PHP Deprecated: Enqueue\Dsn\Dsn::getString(): Implicitly marking parameter $default as nullable is deprecated, the explicit nullable type must be used instead in /var/www/vendor/enqueue/dsn/Dsn.php on line 143 PHP Deprecated: Enqueue\Dsn\Dsn::getDecimal(): Implicitly marking parameter $default as nullable is deprecated, the explicit nullable type must be used instead in /var/www/vendor/enqueue/dsn/Dsn.php on line 148 PHP Deprecated: Enqueue\Dsn\Dsn::getOctal(): Implicitly marking parameter $default as nullable is deprecated, the explicit nullable type must be used instead in /var/www/vendor/enqueue/dsn/Dsn.php on line 153 PHP Deprecated: Enqueue\Dsn\Dsn::getFloat(): Implicitly marking parameter $default as nullable is deprecated, the explicit nullable type must be used instead in /var/www/vendor/enqueue/dsn/Dsn.php on line 158 PHP Deprecated: Enqueue\Dsn\Dsn::getBool(): Implicitly marking parameter $default as nullable is deprecated, the explicit nullable type must be used instead in /var/www/vendor/enqueue/dsn/Dsn.php on line 163 PHP Deprecated: Enqueue\Dsn\QueryBag::getString(): Implicitly marking parameter $default as nullable is deprecated, the explicit nullable type must be used instead in /var/www/vendor/enqueue/dsn/QueryBag.php on line 24 PHP Deprecated: Enqueue\Dsn\QueryBag::getDecimal(): Implicitly marking parameter $default as nullable is deprecated, the explicit nullable type must be used instead in /var/www/vendor/enqueue/dsn/QueryBag.php on line 29 PHP Deprecated: Enqueue\Dsn\QueryBag::getOctal(): Implicitly marking parameter $default as nullable is deprecated, the explicit nullable type must be used instead in /var/www/vendor/enqueue/dsn/QueryBag.php on line 43 PHP Deprecated: Enqueue\Dsn\QueryBag::getFloat(): Implicitly marking parameter $default as nullable is deprecated, the explicit nullable type must be used instead in /var/www/vendor/enqueue/dsn/QueryBag.php on line 57 PHP Deprecated: Enqueue\Dsn\QueryBag::getBool(): Implicitly marking parameter $default as nullable is deprecated, the explicit nullable type must be used instead in /var/www/vendor/enqueue/dsn/QueryBag.php on line 71 PHP Deprecated: Enqueue\Client\Config::create(): Implicitly marking parameter $prefix as nullable is deprecated, the explicit nullable type must be used instead in /var/www/vendor/enqueue/enqueue/Client/Config.php on line 155 PHP Deprecated: Enqueue\Client\Config::create(): Implicitly marking parameter $separator as nullable is deprecated, the explicit nullable type must be used instead in /var/www/vendor/enqueue/enqueue/Client/Config.php on line 155 PHP Deprecated: Enqueue\Client\Config::create(): Implicitly marking parameter $app as nullable is deprecated, the explicit nullable type must be used instead in /var/www/vendor/enqueue/enqueue/Client/Config.php on line 155 PHP Deprecated: Enqueue\Client\Config::create(): Implicitly marking parameter $routerTopic as nullable is deprecated, the explicit nullable type must be used instead in /var/www/vendor/enqueue/enqueue/Client/Config.php on line 155 PHP Deprecated: Enqueue\Client\Config::create(): Implicitly marking parameter $routerQueue as nullable is deprecated, the explicit nullable type must be used instead in /var/www/vendor/enqueue/enqueue/Client/Config.php on line 155 PHP Deprecated: Enqueue\Client\Config::create(): Implicitly marking parameter $defaultQueue as nullable is deprecated, the explicit nullable type must be used instead in /var/www/vendor/enqueue/enqueue/Client/Config.php on line 155 PHP Deprecated: Enqueue\Client\Config::create(): Implicitly marking parameter $routerProcessor as nullable is deprecated, the explicit nullable type must be used instead in /var/www/vendor/enqueue/enqueue/Client/Config.php on line 155 PHP Deprecated: Enqueue\Client\Driver\AmqpDriver::setupBroker(): Implicitly marking parameter $logger as nullable is deprecated, the explicit nullable type must be used instead in /var/www/vendor/enqueue/enqueue/Client/Driver/AmqpDriver.php on line 61 PHP Deprecated: Enqueue\Client\Driver\GenericDriver::setupBroker(): Implicitly marking parameter $logger as nullable is deprecated, the explicit nullable type must be used instead in /var/www/vendor/enqueue/enqueue/Client/Driver/GenericDriver.php on line 123 PHP Deprecated: Enqueue\Client\DriverInterface::setupBroker(): Implicitly marking parameter $logger as nullable is deprecated, the explicit nullable type must be used instead in /var/www/vendor/enqueue/enqueue/Client/DriverInterface.php on line 30 PHP Deprecated: Enqueue\Client\Driver\FsDriver::setupBroker(): Implicitly marking parameter $logger as nullable is deprecated, the explicit nullable type must be used instead in /var/www/vendor/enqueue/enqueue/Client/Driver/FsDriver.php on line 21 PHP Deprecated: Enqueue\Client\Driver\GpsDriver::setupBroker(): Implicitly marking parameter $logger as nullable is deprecated, the explicit nullable type must be used instead in /var/www/vendor/enqueue/enqueue/Client/Driver/GpsDriver.php on line 23 PHP Deprecated: Enqueue\Client\Driver\SqsDriver::setupBroker(): Implicitly marking parameter $logger as nullable is deprecated, the explicit nullable type must be used instead in /var/www/vendor/enqueue/enqueue/Client/Driver/SqsDriver.php on line 21 PHP Deprecated: Enqueue\Client\Driver\SnsQsDriver::setupBroker(): Implicitly marking parameter $logger as nullable is deprecated, the explicit nullable type must be used instead in /var/www/vendor/enqueue/enqueue/Client/Driver/SnsQsDriver.php on line 22 PHP Deprecated: Enqueue\Client\Driver\StompDriver::setupBroker(): Implicitly marking parameter $logger as nullable is deprecated, the explicit nullable type must be used instead in /var/www/vendor/enqueue/enqueue/Client/Driver/StompDriver.php on line 25 PHP Deprecated: Enqueue\Client\Driver\RabbitMqStompDriver::setupBroker(): Implicitly marking parameter $logger as nullable is deprecated, the explicit nullable type must be used instead in /var/www/vendor/enqueue/enqueue/Client/Driver/RabbitMqStompDriver.php on line 65 PHP Deprecated: Enqueue\Client\Driver\RdKafkaDriver::setupBroker(): Implicitly marking parameter $logger as nullable is deprecated, the explicit nullable type must be used instead in /var/www/vendor/enqueue/enqueue/Client/Driver/RdKafkaDriver.php on line 22 PHP Deprecated: Enqueue\Client\Driver\MongodbDriver::setupBroker(): Implicitly marking parameter $logger as nullable is deprecated, the explicit nullable type must be used instead in /var/www/vendor/enqueue/enqueue/Client/Driver/MongodbDriver.php on line 19 PHP Deprecated: Enqueue\Client\Driver\DbalDriver::setupBroker(): Implicitly marking parameter $logger as nullable is deprecated, the explicit nullable type must be used instead in /var/www/vendor/enqueue/enqueue/Client/Driver/DbalDriver.php on line 19 PHP Deprecated: Enqueue\Client\Producer::__construct(): Implicitly marking parameter $extension as nullable is deprecated, the explicit nullable type must be used instead in /var/www/vendor/enqueue/enqueue/Client/Producer.php on line 27 PHP Deprecated: Enqueue\Consumption\QueueConsumer::__construct(): Implicitly marking parameter $extension as nullable is deprecated, the explicit nullable type must be used instead in /var/www/vendor/enqueue/enqueue/Consumption/QueueConsumer.php on line 64 PHP Deprecated: Enqueue\Consumption\QueueConsumer::__construct(): Implicitly marking parameter $logger as nullable is deprecated, the explicit nullable type must be used instead in /var/www/vendor/enqueue/enqueue/Consumption/QueueConsumer.php on line 64 PHP Deprecated: Enqueue\Consumption\QueueConsumer::consume(): Implicitly marking parameter $runtimeExtension as nullable is deprecated, the explicit nullable type must be used instead in /var/www/vendor/enqueue/enqueue/Consumption/QueueConsumer.php on line 125 PHP Deprecated: Enqueue\Consumption\QueueConsumer::onEnd(): Implicitly marking parameter $subscriptionConsumer as nullable is deprecated, the explicit nullable type must be used instead in /var/www/vendor/enqueue/enqueue/Consumption/QueueConsumer.php on line 289 PHP Deprecated: Enqueue\Consumption\QueueConsumerInterface::consume(): Implicitly marking parameter $runtimeExtension as nullable is deprecated, the explicit nullable type must be used instead in /var/www/vendor/enqueue/enqueue/Consumption/QueueConsumerInterface.php on line 41

@hotrush
Copy link

hotrush commented Apr 17, 2025

BTW, code already has all needed changes but new tags were not created.
For example enqueue repo has latest tag 0.10.24 (https://github.com/php-enqueue/enqueue/releases/tag/0.10.24) when other packages has outstanding latest tags, for example:

@hotrush
Copy link

hotrush commented Apr 18, 2025

Hey @makasim , sorry for tagging, but can you please check this

@makasim
Copy link
Member

makasim commented Apr 18, 2025

released https://github.com/php-enqueue/enqueue-dev/releases/tag/0.10.25

@makasim makasim closed this as completed Apr 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants