Skip to content

Add support for ReflectionClass::newLazyGhost of PHP 8.4 #7748

Add support for ReflectionClass::newLazyGhost of PHP 8.4

Add support for ReflectionClass::newLazyGhost of PHP 8.4 #7748

Triggered via pull request October 9, 2024 21:12
Status Failure
Total duration 54s
Artifacts

static-analysis.yml

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

Annotations

30 errors and 5 warnings
PossiblyNullReference: src/Proxy/ProxyFactory.php#L172
src/Proxy/ProxyFactory.php:172:49: PossiblyNullReference: Cannot call method newLazyGhost on possibly null value (see https://psalm.dev/083)
UndefinedMethod: src/Proxy/ProxyFactory.php#L172
src/Proxy/ProxyFactory.php:172:49: UndefinedMethod: Method ReflectionClass::newLazyGhost does not exist (see https://psalm.dev/022)
MissingClosureParamType: src/Proxy/ProxyFactory.php#L172
src/Proxy/ProxyFactory.php:172:79: MissingClosureParamType: Parameter $object has no provided type (see https://psalm.dev/153)
PossiblyNullReference: src/Proxy/ProxyFactory.php#L177
src/Proxy/ProxyFactory.php:177:55: PossiblyNullReference: Cannot call method setRawValueWithoutLazyInitialization on possibly null value (see https://psalm.dev/083)
UndefinedMethod: src/Proxy/ProxyFactory.php#L177
src/Proxy/ProxyFactory.php:177:55: UndefinedMethod: Method ReflectionProperty::setRawValueWithoutLazyInitialization does not exist (see https://psalm.dev/022)
PossiblyNullReference: src/UnitOfWork.php#L2387
src/UnitOfWork.php:2387:40: PossiblyNullReference: Cannot call method markLazyObjectAsInitialized on possibly null value (see https://psalm.dev/083)
UndefinedMethod: src/UnitOfWork.php#L2387
src/UnitOfWork.php:2387:40: UndefinedMethod: Method ReflectionClass::markLazyObjectAsInitialized does not exist (see https://psalm.dev/022)
UndefinedMethod: src/UnitOfWork.php#L3049
src/UnitOfWork.php:3049:26: UndefinedMethod: Method ReflectionObject::initializeLazyObject does not exist (see https://psalm.dev/022)
PossiblyNullReference: src/UnitOfWork.php#L3061
src/UnitOfWork.php:3061:77: PossiblyNullReference: Cannot call method isUninitializedLazyObject on possibly null value (see https://psalm.dev/083)
UndefinedMethod: src/UnitOfWork.php#L3061
src/UnitOfWork.php:3061:77: UndefinedMethod: Method ReflectionClass::isUninitializedLazyObject does not exist (see https://psalm.dev/022)
Static Analysis with Psalm (default)
The job was canceled because "_3_8_2" failed.
PossiblyNullReference: src/Proxy/ProxyFactory.php#L172
src/Proxy/ProxyFactory.php:172:49: PossiblyNullReference: Cannot call method newLazyGhost on possibly null value (see https://psalm.dev/083)
UndefinedMethod: src/Proxy/ProxyFactory.php#L172
src/Proxy/ProxyFactory.php:172:49: UndefinedMethod: Method ReflectionClass::newLazyGhost does not exist (see https://psalm.dev/022)
MissingClosureParamType: src/Proxy/ProxyFactory.php#L172
src/Proxy/ProxyFactory.php:172:79: MissingClosureParamType: Parameter $object has no provided type (see https://psalm.dev/153)
PossiblyNullReference: src/Proxy/ProxyFactory.php#L177
src/Proxy/ProxyFactory.php:177:55: PossiblyNullReference: Cannot call method setRawValueWithoutLazyInitialization on possibly null value (see https://psalm.dev/083)
UndefinedMethod: src/Proxy/ProxyFactory.php#L177
src/Proxy/ProxyFactory.php:177:55: UndefinedMethod: Method ReflectionProperty::setRawValueWithoutLazyInitialization does not exist (see https://psalm.dev/022)
PossiblyNullReference: src/UnitOfWork.php#L2387
src/UnitOfWork.php:2387:40: PossiblyNullReference: Cannot call method markLazyObjectAsInitialized on possibly null value (see https://psalm.dev/083)
UndefinedMethod: src/UnitOfWork.php#L2387
src/UnitOfWork.php:2387:40: UndefinedMethod: Method ReflectionClass::markLazyObjectAsInitialized does not exist (see https://psalm.dev/022)
UndefinedMethod: src/UnitOfWork.php#L3049
src/UnitOfWork.php:3049:26: UndefinedMethod: Method ReflectionObject::initializeLazyObject does not exist (see https://psalm.dev/022)
PossiblyNullReference: src/UnitOfWork.php#L3061
src/UnitOfWork.php:3061:77: PossiblyNullReference: Cannot call method isUninitializedLazyObject on possibly null value (see https://psalm.dev/083)
UndefinedMethod: src/UnitOfWork.php#L3061
src/UnitOfWork.php:3061:77: UndefinedMethod: Method ReflectionClass::isUninitializedLazyObject does not exist (see https://psalm.dev/022)
Static Analysis with PHPStan (3.8.2, phpstan-dbal3.neon): src/UnitOfWork.php#L2387
Call to an undefined method ReflectionClass<object>::markLazyObjectAsInitialized().
Static Analysis with PHPStan (3.8.2, phpstan-dbal3.neon): src/UnitOfWork.php#L3049
Call to an undefined method ReflectionObject::initializeLazyObject().
Static Analysis with PHPStan (3.8.2, phpstan-dbal3.neon): src/UnitOfWork.php#L3061
Call to an undefined method ReflectionClass<object>::isUninitializedLazyObject().
Static Analysis with PHPStan (3.8.2, phpstan-dbal3.neon)
Process completed with exit code 1.
Static Analysis with PHPStan (default, phpstan.neon)
The job was canceled because "_3_8_2_phpstan-dbal3_neon" failed.
Static Analysis with PHPStan (default, phpstan.neon): src/UnitOfWork.php#L2387
Call to an undefined method ReflectionClass<object>::markLazyObjectAsInitialized().
Static Analysis with PHPStan (default, phpstan.neon): src/UnitOfWork.php#L3049
Call to an undefined method ReflectionObject::initializeLazyObject().
Static Analysis with PHPStan (default, phpstan.neon): src/UnitOfWork.php#L3061
Call to an undefined method ReflectionClass<object>::isUninitializedLazyObject().
Static Analysis with PHPStan (default, phpstan.neon)
Process completed with exit code 1.
Static Analysis with Psalm (3.8.2)
The process '/usr/bin/git' failed with exit code 128
Static Analysis with Psalm (default)
The process '/usr/bin/git' failed with exit code 128
Static Analysis with PHPStan (3.8.2, phpstan-dbal3.neon)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Static Analysis with PHPStan (3.8.2, phpstan-dbal3.neon)
The process '/usr/bin/git' failed with exit code 128
Static Analysis with PHPStan (default, phpstan.neon)
The process '/usr/bin/git' failed with exit code 128