Skip to content

Switch proxies back to Doctrine Persistence and LazyGhostTrait #1524

Switch proxies back to Doctrine Persistence and LazyGhostTrait

Switch proxies back to Doctrine Persistence and LazyGhostTrait #1524

Triggered via pull request October 19, 2024 01:33
Status Failure
Total duration 55s
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
TypeDoesNotContainType: lib/Doctrine/ODM/MongoDB/Proxy/ProxyFactory.php#L112
lib/Doctrine/ODM/MongoDB/Proxy/ProxyFactory.php:112:37: TypeDoesNotContainType: Type 0|1|2|3|4 for $autoGenerate is never !<0 (see https://psalm.dev/056)
TypeDoesNotContainType: lib/Doctrine/ODM/MongoDB/Proxy/ProxyFactory.php#L112
lib/Doctrine/ODM/MongoDB/Proxy/ProxyFactory.php:112:58: TypeDoesNotContainType: Type 0|1|2|3|4 for $autoGenerate is never >4 (see https://psalm.dev/056)
InvalidNullableReturnType: lib/Doctrine/ODM/MongoDB/Proxy/ProxyFactory.php#L214
lib/Doctrine/ODM/MongoDB/Proxy/ProxyFactory.php:214:58: InvalidNullableReturnType: The declared return type 'Closure' for Doctrine\ODM\MongoDB\Proxy\ProxyFactory::getProxyFactory is not nullable, but 'Closure|null' contains null (see https://psalm.dev/144)
UndefinedMethod: lib/Doctrine/ODM/MongoDB/Proxy/ProxyFactory.php#L245
lib/Doctrine/ODM/MongoDB/Proxy/ProxyFactory.php:245:22: UndefinedMethod: Method Doctrine\ODM\MongoDB\Proxy\ProxyFactory::createlazyghost does not exist (see https://psalm.dev/022)
InvalidArgument: lib/Doctrine/ODM/MongoDB/Proxy/ProxyFactory.php#L246
lib/Doctrine/ODM/MongoDB/Proxy/ProxyFactory.php:246:30: InvalidArgument: Argument 1 expects Doctrine\ODM\MongoDB\Proxy\InternalProxy&(T:fn-doctrine\odm\mongodb\proxy\proxyfactory::createlazyinitializer as object), but Doctrine\ODM\MongoDB\Proxy\InternalProxy<object> provided (see https://psalm.dev/004)
InvalidPropertyAssignmentValue: lib/Doctrine/ODM/MongoDB/Proxy/ProxyFactory.php#L254
lib/Doctrine/ODM/MongoDB/Proxy/ProxyFactory.php:254:16: InvalidPropertyAssignmentValue: $this->proxyFactories with declared type 'array<class-string, Closure>' cannot be assigned type 'non-empty-array<class-string, Closure|null>' (see https://psalm.dev/145)
NullableReturnStatement: lib/Doctrine/ODM/MongoDB/Proxy/ProxyFactory.php#L254
lib/Doctrine/ODM/MongoDB/Proxy/ProxyFactory.php:254:16: NullableReturnStatement: The declared return type 'Closure' for Doctrine\ODM\MongoDB\Proxy\ProxyFactory::getProxyFactory is not nullable, but the function returns 'Closure|null' (see https://psalm.dev/139)
UnusedBaselineEntry: lib/Doctrine/ODM/MongoDB/Proxy/Resolver/ProxyManagerClassNameResolver.php#L1
lib/Doctrine/ODM/MongoDB/Proxy/Resolver/ProxyManagerClassNameResolver.php:0:0: UnusedBaselineEntry: Baseline for issue "MoreSpecificImplementedParamType" has 1 extra entry. (see https://psalm.dev/316)
Static Analysis with Psalm (8.2)
Process completed with exit code 2.

Artifacts

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