Skip to content

Update Adapter.php #472

Update Adapter.php

Update Adapter.php #472

Triggered via pull request December 7, 2024 18:16
Status Failure
Total duration 40s
Artifacts

static.yml

on: pull_request
Matrix: psalm / psalm
Fit to window
Zoom out
Zoom in

Annotations

13 errors and 1 warning
InvalidArgument: src/Adapter.php#L50
src/Adapter.php:50:13: InvalidArgument: Argument 3 of Yiisoft\Queue\AMQP\ExistingMessagesConsumer::__construct expects Yiisoft\Queue\AMQP\MessageSerializerInterface, but Yiisoft\Queue\Message\MessageSerializerInterface provided (see https://psalm.dev/004)
DeprecatedProperty: src/ExistingMessagesConsumer.php#L40
src/ExistingMessagesConsumer.php:40:63: DeprecatedProperty: PhpAmqpLib\Message\AMQPMessage::$body is marked deprecated (see https://psalm.dev/099)
UndefinedInterfaceMethod: src/MessageSerializer.php#L21
src/MessageSerializer.php:21:31: UndefinedInterfaceMethod: Method Yiisoft\Queue\Message\MessageInterface::getId does not exist (see https://psalm.dev/181)
TooManyArguments: src/MessageSerializer.php#L57
src/MessageSerializer.php:57:16: TooManyArguments: Too many arguments for Yiisoft\Queue\Message\Message::__construct - expecting 3 but saw 4 (see https://psalm.dev/026)
psalm / PHP 8.2-ubuntu-latest
Process completed with exit code 2.
psalm / PHP 8.3-ubuntu-latest
The job was canceled because "ubuntu-latest_8_2" failed.
InvalidArgument: src/Adapter.php#L50
src/Adapter.php:50:13: InvalidArgument: Argument 3 of Yiisoft\Queue\AMQP\ExistingMessagesConsumer::__construct expects Yiisoft\Queue\AMQP\MessageSerializerInterface, but Yiisoft\Queue\Message\MessageSerializerInterface provided (see https://psalm.dev/004)
DeprecatedProperty: src/ExistingMessagesConsumer.php#L40
src/ExistingMessagesConsumer.php:40:63: DeprecatedProperty: PhpAmqpLib\Message\AMQPMessage::$body is marked deprecated (see https://psalm.dev/099)
UndefinedInterfaceMethod: src/MessageSerializer.php#L21
src/MessageSerializer.php:21:31: UndefinedInterfaceMethod: Method Yiisoft\Queue\Message\MessageInterface::getId does not exist (see https://psalm.dev/181)
TooManyArguments: src/MessageSerializer.php#L57
src/MessageSerializer.php:57:16: TooManyArguments: Too many arguments for Yiisoft\Queue\Message\Message::__construct - expecting 3 but saw 4 (see https://psalm.dev/026)
psalm / PHP 8.3-ubuntu-latest
The operation was canceled.
psalm / PHP 8.1-ubuntu-latest
The job was canceled because "ubuntu-latest_8_2" failed.
psalm / PHP 8.1-ubuntu-latest
The operation was canceled.
psalm / PHP 8.2-ubuntu-latest
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636