Skip to content

Remove the withChannelName() method from QueueInterface #1081

Remove the withChannelName() method from QueueInterface

Remove the withChannelName() method from QueueInterface #1081

Triggered via pull request December 8, 2024 16:40
Status Failure
Total duration 1m 20s
Artifacts

static.yml

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

Annotations

12 errors and 1 warning
PossiblyNullArrayOffset: src/Debug/QueueCollector.php#L76
src/Debug/QueueCollector.php:76:9: PossiblyNullArrayOffset: Cannot access value on variable $this->processingMessages[null|string] using possibly null offset null|string (see https://psalm.dev/125)
PossiblyInvalidArgument: src/Debug/QueueDecorator.php#L24
src/Debug/QueueDecorator.php:24:41: PossiblyInvalidArgument: Argument 1 of Yiisoft\Queue\Debug\QueueCollector::collectStatus expects string, but possibly different type int|string provided (see https://psalm.dev/092)
PossiblyNullArrayOffset: src/Middleware/FailureHandling/FailureMiddlewareDispatcher.php#L44
src/Middleware/FailureHandling/FailureMiddlewareDispatcher.php:44:38: PossiblyNullArrayOffset: Cannot access value on variable $this->middlewareDefinitions using possibly null offset null|string (see https://psalm.dev/125)
PossiblyNullArrayOffset: src/Middleware/FailureHandling/FailureMiddlewareDispatcher.php#L47
src/Middleware/FailureHandling/FailureMiddlewareDispatcher.php:47:13: PossiblyNullArrayOffset: Cannot access value on variable $this->stack[$channelName] using possibly null offset null|string (see https://psalm.dev/125)
UndefinedInterfaceMethod: src/Provider/AdapterFactoryQueueProvider.php#L88
src/Provider/AdapterFactoryQueueProvider.php:88:80: UndefinedInterfaceMethod: Method Yiisoft\Queue\QueueInterface::withChannelName does not exist (see https://psalm.dev/181)
UndefinedInterfaceMethod: src/Provider/PrototypeQueueProvider.php#L25
src/Provider/PrototypeQueueProvider.php:25:34: UndefinedInterfaceMethod: Method Yiisoft\Queue\QueueInterface::withChannelName does not exist (see https://psalm.dev/181)
PossiblyInvalidArgument: src/Queue.php#L111
src/Queue.php:111:39: PossiblyInvalidArgument: Argument 1 of Yiisoft\Queue\Adapter\AdapterInterface::status expects string, but possibly different type int|string provided (see https://psalm.dev/092)
psalm / PHP 8.1-ubuntu-latest
Process completed with exit code 2.
psalm / PHP 8.3-ubuntu-latest
The job was canceled because "ubuntu-latest_8_1" failed.
psalm / PHP 8.3-ubuntu-latest
The operation was canceled.
psalm / PHP 8.2-ubuntu-latest
The job was canceled because "ubuntu-latest_8_1" failed.
psalm / PHP 8.2-ubuntu-latest
A task was canceled.
psalm / PHP 8.1-ubuntu-latest
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636