Page MenuHomeDevCentral

Deprecations in keruald/broker when using php-amqplib 2.5.2

Authored By
dereckson
Mar 15 2023, 23:45
Size
5 KB
Referenced Files
None
Subscribers
None

Deprecations in keruald/broker when using php-amqplib 2.5.2

Switching to Composer phpunit:
PHPUnit 10.0.16 by Sebastian Bergmann and contributors.
Runtime: PHP 8.1.16
Configuration: /tmp/broker/phpunit.xml
D..D... 7 / 7 (100%)
Time: 00:00.137, Memory: 8.00 MB
There were 2 PHP deprecations:
1) Keruald\Broker\Tests\AMQPBrokerTest::testFluencyPattern
* Optional parameter $vhost declared before required parameter $io is implicitly treated as a required parameter
* Optional parameter $insist declared before required parameter $io is implicitly treated as a required parameter
* Optional parameter $login_method declared before required parameter $io is implicitly treated as a required parameter
* Optional parameter $login_response declared before required parameter $io is implicitly treated as a required parameter
* Optional parameter $locale declared before required parameter $io is implicitly treated as a required parameter
* mb_strlen(): Passing null to parameter #1 ($string) of type string is deprecated
* Return type of PhpAmqpLib\Wire\AMQPAbstractCollection::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
* Return type of PhpAmqpLib\Wire\AMQPAbstractCollection::next() should either be compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
* Return type of PhpAmqpLib\Wire\AMQPAbstractCollection::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
* Return type of PhpAmqpLib\Wire\AMQPAbstractCollection::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
* Return type of PhpAmqpLib\Wire\AMQPAbstractCollection::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
* mb_strlen(): Passing null to parameter #1 ($string) of type string is deprecated
* mb_strlen(): Passing null to parameter #1 ($string) of type string is deprecated
* mb_strlen(): Passing null to parameter #1 ($string) of type string is deprecated
* Optional parameter $version_major declared before required parameter $server_properties is implicitly treated as a required parameter
* Optional parameter $version_minor declared before required parameter $server_properties is implicitly treated as a required parameter
* Optional parameter $reply_text declared before required parameter $method_id is implicitly treated as a required parameter
* Optional parameter $reply_text declared before required parameter $method_id is implicitly treated as a required parameter
* Optional parameter $ticket declared before required parameter $exchange is implicitly treated as a required parameter
* Optional parameter $ticket declared before required parameter $exchange is implicitly treated as a required parameter
* Optional parameter $ticket declared before required parameter $source is implicitly treated as a required parameter
* Optional parameter $ticket declared before required parameter $source is implicitly treated as a required parameter
* Optional parameter $ticket declared before required parameter $exchange is implicitly treated as a required parameter
* Optional parameter $queue declared before required parameter $exchange is implicitly treated as a required parameter
* Optional parameter $ticket declared before required parameter $exchange is implicitly treated as a required parameter
* Optional parameter $queue declared before required parameter $exchange is implicitly treated as a required parameter
* Optional parameter $reply_text declared before required parameter $routing_key is implicitly treated as a required parameter
* Optional parameter $redelivered declared before required parameter $routing_key is implicitly treated as a required parameter
* mb_strlen(): Passing null to parameter #1 ($string) of type string is deprecated
* mb_strlen(): Passing null to parameter #1 ($string) of type string is deprecated
* mb_strlen(): Passing null to parameter #1 ($string) of type string is deprecated
* mb_strlen(): Passing null to parameter #1 ($string) of type string is deprecated
/tmp/broker/tests/AMQPBrokerTest.php:17
2) Keruald\Broker\Tests\BrokerFactoryTest::testValidParameters
* mb_strlen(): Passing null to parameter #1 ($string) of type string is deprecated
* mb_strlen(): Passing null to parameter #1 ($string) of type string is deprecated
* mb_strlen(): Passing null to parameter #1 ($string) of type string is deprecated
* mb_strlen(): Passing null to parameter #1 ($string) of type string is deprecated
* mb_strlen(): Passing null to parameter #1 ($string) of type string is deprecated
* mb_strlen(): Passing null to parameter #1 ($string) of type string is deprecated
* mb_strlen(): Passing null to parameter #1 ($string) of type string is deprecated
* mb_strlen(): Passing null to parameter #1 ($string) of type string is deprecated
/tmp/broker/tests/BrokerFactoryTest.php:9
OK, but some tests have issues!
Tests: 7, Assertions: 14, Deprecations: 2.

File Metadata

Mime Type
text/plain; charset=utf-8
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1360554
Default Alt Text
Deprecations in keruald/broker when using php-amqplib 2.5.2 (5 KB)

Event Timeline