Skip to content

Switch proxies back to Doctrine Persistence and LazyGhostTrait #1521

Switch proxies back to Doctrine Persistence and LazyGhostTrait

Switch proxies back to Doctrine Persistence and LazyGhostTrait #1521

Triggered via pull request October 19, 2024 01:19
Status Failure
Total duration 1m 1s
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

20 errors
InvalidPropertyAssignmentValue: lib/Doctrine/ODM/MongoDB/Configuration.php#L282
lib/Doctrine/ODM/MongoDB/Configuration.php:282:9: InvalidPropertyAssignmentValue: $this->attributes with declared type 'array{autoGenerateHydratorClasses?: 0|1|2|3|4, autoGeneratePersistentCollectionClasses?: 0|1|2|3|4, classMetadataFactoryName?: class-string<Doctrine\ODM\MongoDB\Mapping\ClassMetadataFactoryInterface>, defaultCommitOptions?: array{fsync?: bool, safe?: int, w?: int, withTransaction?: bool, writeConcern?: MongoDB\Driver\WriteConcern}, defaultDB?: string, defaultDocumentRepositoryClassName?: class-string<Doctrine\Persistence\ObjectRepository<object>>, defaultGridFSRepositoryClassName?: class-string<Doctrine\ODM\MongoDB\Repository\GridFSRepository<object>>, documentNamespaces?: array<string, string>, filters?: array<string, array{class: class-string, parameters: array<string, mixed>}>, hydratorDir?: string, hydratorNamespace?: string, metadataCacheImpl?: Doctrine\Common\Cache\Cache, metadataDriverImpl?: Doctrine\Persistence\Mapping\Driver\MappingDriver, persistentCollectionDir?: string, persistentCollectionFactory?: Doctrine\ODM\MongoDB\PersistentCollection\PersistentCollectionFactory, persistentCollectionGenerator?: Doctrine\ODM\MongoDB\PersistentCollection\PersistentCollectionGenerator, persistentCollectionNamespace?: string, proxyDir?: string, proxyNamespace?: string, repositoryFactory?: Doctrine\ODM\MongoDB\Repository\RepositoryFactory}' cannot be assigned type 'array{autoGenerateHydratorClasses?: 0|1|2|3|4, autoGeneratePersistentCollectionClasses?: 0|1|2|3|4, autoGenerateProxyClasses: 0|1|2|3|4, classMetadataFactoryName?: class-string<Doctrine\ODM\MongoDB\Mapping\ClassMetadataFactoryInterface>, defaultCommitOptions?: array{fsync?: bool, safe?: int, w?: int, withTransaction?: bool, writeConcern?: MongoDB\Driver\WriteConcern}, defaultDB?: string, defaultDocumentRepositoryClassName?: class-string<Doctrine\Persistence\ObjectRepository<object>>, defaultGridFSRepositoryClassName?: class-string<Doctrine\ODM\MongoDB\Repository\GridFSRepository<object>>, documentNamespaces?: array<string, string>, filters?: array<string, array{class: class-string, parameters: array<string, mixed>}>, hydratorDir?: string, hydratorNamespace?: string, metadataCacheImpl?: Doctrine\Common\Cache\Cache, metadataDriverImpl?: Doctrine\Persistence\Mapping\Driver\MappingDriver, persistentCollectionDir?: string, persistentCollectionFactory?: Doctrine\ODM\MongoDB\PersistentCollection\PersistentCollectionFactory, persistentCollectionGenerator?: Doctrine\ODM\MongoDB\PersistentCollection\PersistentCollectionGenerator, persistentCollectionNamespace?: string, proxyDir?: string, proxyNamespace?: string, repositoryFactory?: Doctrine\ODM\MongoDB\Repository\RepositoryFactory}' (see https://psalm.dev/145)
UndefinedDocblockClass: lib/Doctrine/ODM/MongoDB/Proxy/Autoloader.php#L37
lib/Doctrine/ODM/MongoDB/Proxy/Autoloader.php:37:16: UndefinedDocblockClass: Docblock-defined class, interface or enum named Doctrine\ODM\MongoDB\InvalidArgumentException does not exist (see https://psalm.dev/200)
UndefinedClass: lib/Doctrine/ODM/MongoDB/Proxy/Autoloader.php#L42
lib/Doctrine/ODM/MongoDB/Proxy/Autoloader.php:42:23: UndefinedClass: Class, interface or enum named Doctrine\ODM\MongoDB\InvalidArgumentException does not exist (see https://psalm.dev/019)
TypeDoesNotContainType: lib/Doctrine/ODM/MongoDB/Proxy/ProxyFactory.php#L150
lib/Doctrine/ODM/MongoDB/Proxy/ProxyFactory.php:150: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#L150
lib/Doctrine/ODM/MongoDB/Proxy/ProxyFactory.php:150: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#L252
lib/Doctrine/ODM/MongoDB/Proxy/ProxyFactory.php:252: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#L283
lib/Doctrine/ODM/MongoDB/Proxy/ProxyFactory.php:283: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#L284
lib/Doctrine/ODM/MongoDB/Proxy/ProxyFactory.php:284: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#L292
lib/Doctrine/ODM/MongoDB/Proxy/ProxyFactory.php:292: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#L292
lib/Doctrine/ODM/MongoDB/Proxy/ProxyFactory.php:292: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)
Static Analysis with PHPStan (8.2): benchmark/BaseBench.php#L15
Cannot use Doctrine\ODM\MongoDB\Proxy\ProxyFactory as ProxyFactory because the name is already in use on line 15
Static Analysis with PHPStan (8.2): benchmark/Document/HydrateDocumentBench.php#L15
Cannot use Doctrine\ODM\MongoDB\Proxy\ProxyFactory as ProxyFactory because the name is already in use on line 15
Static Analysis with PHPStan (8.2): benchmark/Document/LoadDocumentBench.php#L15
Cannot use Doctrine\ODM\MongoDB\Proxy\ProxyFactory as ProxyFactory because the name is already in use on line 15
Static Analysis with PHPStan (8.2): benchmark/Document/StoreDocumentBench.php#L15
Cannot use Doctrine\ODM\MongoDB\Proxy\ProxyFactory as ProxyFactory because the name is already in use on line 15
Static Analysis with PHPStan (8.2): lib/Doctrine/ODM/MongoDB/Aggregation/Aggregation.php#L15
Cannot use Doctrine\ODM\MongoDB\Proxy\ProxyFactory as ProxyFactory because the name is already in use on line 15
Static Analysis with PHPStan (8.2): lib/Doctrine/ODM/MongoDB/Aggregation/Builder.php#L15
Cannot use Doctrine\ODM\MongoDB\Proxy\ProxyFactory as ProxyFactory because the name is already in use on line 15
Static Analysis with PHPStan (8.2): lib/Doctrine/ODM/MongoDB/Aggregation/Expr.php#L15
Cannot use Doctrine\ODM\MongoDB\Proxy\ProxyFactory as ProxyFactory because the name is already in use on line 15
Static Analysis with PHPStan (8.2): lib/Doctrine/ODM/MongoDB/Aggregation/Stage/AbstractBucket.php#L15
Cannot use Doctrine\ODM\MongoDB\Proxy\ProxyFactory as ProxyFactory because the name is already in use on line 15
Static Analysis with PHPStan (8.2): lib/Doctrine/ODM/MongoDB/Aggregation/Stage/AbstractReplace.php#L15
Cannot use Doctrine\ODM\MongoDB\Proxy\ProxyFactory as ProxyFactory because the name is already in use on line 15
Static Analysis with PHPStan (8.2): lib/Doctrine/ODM/MongoDB/Aggregation/Stage/GraphLookup.php#L15
Cannot use Doctrine\ODM\MongoDB\Proxy\ProxyFactory as ProxyFactory because the name is already in use on line 15

Artifacts

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