WIP Allow usage of Symfony EventDispatcher instead of Doctrine EventManager #1495
static-analysis.yml
on: pull_request
Matrix: Static Analysis with PHPStan
Matrix: Static Analysis with Psalm
Annotations
9 errors
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.
|
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.
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
composer-lock-static-analysis-phpstan
Expired
|
24 KB |
|
composer-lock-static-analysis-psalm
Expired
|
24 KB |
|