Skip to content

Fix cloning entities #7438

Fix cloning entities

Fix cloning entities #7438

Triggered via pull request May 24, 2024 06:45
Status Failure
Total duration 59s
Artifacts

static-analysis.yml

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

Annotations

15 errors and 4 warnings
InvalidReturnType: src/Proxy/ProxyFactory.php#L357
src/Proxy/ProxyFactory.php:357:16: InvalidReturnType: The declared return type 'Closure(Doctrine\ORM\Proxy\InternalProxy, Doctrine\ORM\Proxy\InternalProxy):void' for Doctrine\ORM\Proxy\ProxyFactory::createLazyInitializer is incorrect, got 'impure-Closure(Doctrine\ORM\Proxy\InternalProxy, array<array-key, mixed>):void' (see https://psalm.dev/011)
InvalidReturnStatement: src/Proxy/ProxyFactory.php#L363
src/Proxy/ProxyFactory.php:363:16: InvalidReturnStatement: The inferred type 'impure-Closure(Doctrine\ORM\Proxy\InternalProxy, array<array-key, mixed>):void' does not match the declared return type 'Closure(Doctrine\ORM\Proxy\InternalProxy, Doctrine\ORM\Proxy\InternalProxy):void' for Doctrine\ORM\Proxy\ProxyFactory::createLazyInitializer (see https://psalm.dev/128)
UndefinedMethod: src/Proxy/ProxyFactory.php#L471
src/Proxy/ProxyFactory.php:471:22: UndefinedMethod: Method Doctrine\ORM\Proxy\ProxyFactory::createlazyghost does not exist (see https://psalm.dev/022)
InvalidArgument: src/Proxy/ProxyFactory.php#L472
src/Proxy/ProxyFactory.php:472:39: InvalidArgument: Argument 2 expects Doctrine\ORM\Proxy\InternalProxy<object>, but array<array-key, mixed> provided (see https://psalm.dev/004)
UnusedBaselineEntry: src/Proxy/ProxyFactory.php#L1
src/Proxy/ProxyFactory.php:0:0: UnusedBaselineEntry: Baseline for issue "UndefinedMethod" has 1 extra entry. (see https://psalm.dev/316)
Static Analysis with Psalm
Process completed with exit code 2.
Static Analysis with PHPStan (default, 2.5): src/Proxy/ProxyFactory.php#L363
Method Doctrine\ORM\Proxy\ProxyFactory::createLazyInitializer() should return Closure(Doctrine\ORM\Proxy\InternalProxy, Doctrine\ORM\Proxy\InternalProxy): void but returns Closure(Doctrine\ORM\Proxy\InternalProxy, array): void.
Static Analysis with PHPStan (default, 2.5): src/Proxy/ProxyFactory.php#L472
Parameter #2 of closure expects Doctrine\ORM\Proxy\InternalProxy, array given.
Static Analysis with PHPStan (default, 2.5)
Process completed with exit code 1.
Static Analysis with PHPStan (default, default): src/Proxy/ProxyFactory.php#L363
Method Doctrine\ORM\Proxy\ProxyFactory::createLazyInitializer() should return Closure(Doctrine\ORM\Proxy\InternalProxy, Doctrine\ORM\Proxy\InternalProxy): void but returns Closure(Doctrine\ORM\Proxy\InternalProxy, array): void.
Static Analysis with PHPStan (default, default): src/Proxy/ProxyFactory.php#L472
Parameter #2 of closure expects Doctrine\ORM\Proxy\InternalProxy, array given.
Static Analysis with PHPStan (default, default)
Process completed with exit code 1.
Static Analysis with PHPStan (2.13, default): src/Proxy/ProxyFactory.php#L363
Method Doctrine\ORM\Proxy\ProxyFactory::createLazyInitializer() should return Closure(Doctrine\ORM\Proxy\InternalProxy, Doctrine\ORM\Proxy\InternalProxy): void but returns Closure(Doctrine\ORM\Proxy\InternalProxy, array): void.
Static Analysis with PHPStan (2.13, default): src/Proxy/ProxyFactory.php#L472
Parameter #2 of closure expects Doctrine\ORM\Proxy\InternalProxy, array given.
Static Analysis with PHPStan (2.13, default)
Process completed with exit code 1.
Static Analysis with Psalm
The process '/usr/bin/git' failed with exit code 128
Static Analysis with PHPStan (default, 2.5)
The process '/usr/bin/git' failed with exit code 128
Static Analysis with PHPStan (default, default)
The process '/usr/bin/git' failed with exit code 128
Static Analysis with PHPStan (2.13, default)
The process '/usr/bin/git' failed with exit code 128