Skip to content

WIP Allow usage of Symfony EventDispatcher instead of Doctrine EventManager #1493

WIP Allow usage of Symfony EventDispatcher instead of Doctrine EventManager

WIP Allow usage of Symfony EventDispatcher instead of Doctrine EventManager #1493

Triggered via pull request October 9, 2024 23:42
Status Failure
Total duration 1m 7s
Artifacts 2

static-analysis.yml

on: pull_request
Matrix: Static Analysis with PHPStan
Matrix: Static Analysis with Psalm
Fit to window
Zoom out
Zoom in

Annotations

9 errors
UndefinedInterfaceMethod: lib/Doctrine/ODM/MongoDB/Hydrator/HydratorFactory.php#L442
lib/Doctrine/ODM/MongoDB/Hydrator/HydratorFactory.php:442:25: UndefinedInterfaceMethod: Method Symfony\Contracts\EventDispatcher\EventDispatcherInterface::dispatchEvent does not exist (see https://psalm.dev/181)
UndefinedInterfaceMethod: lib/Doctrine/ODM/MongoDB/Mapping/ClassMetadataFactory.php#L198
lib/Doctrine/ODM/MongoDB/Mapping/ClassMetadataFactory.php:198:25: UndefinedInterfaceMethod: Method Symfony\Contracts\EventDispatcher\EventDispatcherInterface::dispatchEvent does not exist (see https://psalm.dev/181)
MoreSpecificImplementedParamType: lib/Doctrine/ODM/MongoDB/Utility/EventDispatcher.php#L34
lib/Doctrine/ODM/MongoDB/Utility/EventDispatcher.php:34:37: MoreSpecificImplementedParamType: Argument 1 of Doctrine\ODM\MongoDB\Utility\EventDispatcher::dispatch has the more specific type 'Doctrine\Common\EventArgs', expecting 'object' as defined by Symfony\Contracts\EventDispatcher\EventDispatcherInterface::dispatch (see https://psalm.dev/140)
MoreSpecificImplementedParamType: lib/Doctrine/ODM/MongoDB/Utility/EventDispatcher.php#L34
lib/Doctrine/ODM/MongoDB/Utility/EventDispatcher.php:34:37: MoreSpecificImplementedParamType: Argument 1 of Doctrine\ODM\MongoDB\Utility\EventDispatcher::dispatch has the more specific type 'Doctrine\Common\EventArgs', expecting 'object' as defined by Psr\EventDispatcher\EventDispatcherInterface::dispatch (see https://psalm.dev/140)
Static Analysis with Psalm (8.2)
Process completed with exit code 2.
Static Analysis with PHPStan (8.2): lib/Doctrine/ODM/MongoDB/Hydrator/HydratorFactory.php#L441
Else branch is unreachable because previous condition is always true.
Static Analysis with PHPStan (8.2): lib/Doctrine/ODM/MongoDB/Mapping/ClassMetadataFactory.php#L197
Else branch is unreachable because previous condition is always true.
Static Analysis with PHPStan (8.2): lib/Doctrine/ODM/MongoDB/Utility/LifecycleEventManager.php#L306
Unable to resolve the template type T in call to method Symfony\Contracts\EventDispatcher\EventDispatcherInterface::dispatch()
Static Analysis with PHPStan (8.2)
Process completed with exit code 1.

Artifacts

Produced during runtime
Name Size
composer-lock-static-analysis-phpstan
24 KB
composer-lock-static-analysis-psalm
24 KB