Skip to content

Use Attribute instead of annotation in Plugin Manager test Trait #1103

Use Attribute instead of annotation in Plugin Manager test Trait

Use Attribute instead of annotation in Plugin Manager test Trait #1103

Triggered via pull request January 26, 2025 21:19
Status Failure
Total duration 58s
Artifacts

continuous-integration.yml

on: pull_request
ci  /  Generate job matrix
8s
ci / Generate job matrix
Matrix: ci / QA Checks
Fit to window
Zoom out
Zoom in

Annotations

5 errors and 13 warnings
InvalidDocblock: src/AbstractPluginManager.php#L259
src/AbstractPluginManager.php:259:15: InvalidDocblock: Intersection types must be all objects, Psalm\Type\Atomic\TTypeAlias provided in docblock for Laminas\ServiceManager\AbstractPluginManager::setFactory (see https://psalm.dev/008)
MixedArgumentTypeCoercion: src/AbstractPluginManager.php#L266
src/AbstractPluginManager.php:266:43: MixedArgumentTypeCoercion: Argument 2 of Laminas\ServiceManager\ServiceManager::setFactory expects Laminas\ServiceManager\Factory\FactoryInterface|callable(Psr\Container\ContainerInterface, string, array<array-key, mixed>|null):mixed|class-string, but parent type Laminas\ServiceManager\Factory\FactoryInterface|callable|string provided (see https://psalm.dev/194)
InvalidDocblock: src/AbstractPluginManager.php#L305
src/AbstractPluginManager.php:305:21: InvalidDocblock: Intersection types must be all objects, Psalm\Type\Atomic\TTypeAlias provided in docblock for Laminas\ServiceManager\AbstractPluginManager::addDelegator (see https://psalm.dev/008)
ArgumentTypeCoercion: src/AbstractPluginManager.php#L310
src/AbstractPluginManager.php:310:45: ArgumentTypeCoercion: Argument 2 of Laminas\ServiceManager\ServiceManager::addDelegator expects Laminas\ServiceManager\Factory\DelegatorFactoryInterface|callable(Psr\Container\ContainerInterface, string, callable():mixed, array<array-key, mixed>|null):mixed|class-string, but parent type Laminas\ServiceManager\Factory\DelegatorFactoryInterface|callable|string provided (see https://psalm.dev/193)
PossiblyUnusedMethod: src/Test/CommonPluginManagerTrait.php#L58
src/Test/CommonPluginManagerTrait.php:58:28: PossiblyUnusedMethod: Cannot find any calls to method LaminasTest\ServiceManager\ExamplePluginManagerTest::aliasProvider (see https://psalm.dev/087)
ci / Generate job matrix
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636