Skip to content

ClassReflection: narrow getNativeReflection after isEnum is true #20517

ClassReflection: narrow getNativeReflection after isEnum is true

ClassReflection: narrow getNativeReflection after isEnum is true #20517

Triggered via pull request April 8, 2025 10:46
Status Failure
Total duration 3m 23s
Artifacts

static-analysis.yml

on: pull_request
Generate baseline
1m 31s
Generate baseline
Generate PHP baseline
1m 34s
Generate PHP baseline
Matrix: PHPStan with result cache
Matrix: PHPStan
Fit to window
Zoom out
Zoom in

Annotations

49 errors
Generate baseline
Process completed with exit code 1.
PHPStan with result cache (8.1): tests/PHPStan/Reflection/ClassReflectionTest.php#L299
Call to method PHPUnit\Framework\Assert::assertInstanceOf() with 'ReflectionEnum' and PHPStan\BetterReflection\Reflection\Adapter\ReflectionEnum will always evaluate to true.
PHPStan with result cache (8.1)
Process completed with exit code 2.
PHPStan (8.3, ubuntu-latest): tests/PHPStan/Reflection/ClassReflectionTest.php#L299
Call to method PHPUnit\Framework\Assert::assertInstanceOf() with 'ReflectionEnum' and PHPStan\BetterReflection\Reflection\Adapter\ReflectionEnum will always evaluate to true.
PHPStan (8.3, ubuntu-latest)
Process completed with exit code 2.
PHPStan (8.4, ubuntu-latest): tests/PHPStan/Reflection/ClassReflectionTest.php#L299
Call to method PHPUnit\Framework\Assert::assertInstanceOf() with 'ReflectionEnum' and PHPStan\BetterReflection\Reflection\Adapter\ReflectionEnum will always evaluate to true.
PHPStan (8.4, ubuntu-latest)
Process completed with exit code 2.
PHPStan with result cache (8.2): tests/PHPStan/Reflection/ClassReflectionTest.php#L299
Call to method PHPUnit\Framework\Assert::assertInstanceOf() with 'ReflectionEnum' and PHPStan\BetterReflection\Reflection\Adapter\ReflectionEnum will always evaluate to true.
PHPStan with result cache (8.2)
Process completed with exit code 2.
PHPStan (8.2, ubuntu-latest): tests/PHPStan/Reflection/ClassReflectionTest.php#L299
Call to method PHPUnit\Framework\Assert::assertInstanceOf() with 'ReflectionEnum' and PHPStan\BetterReflection\Reflection\Adapter\ReflectionEnum will always evaluate to true.
PHPStan (8.2, ubuntu-latest)
Process completed with exit code 2.
PHPStan with result cache (8.4): tests/PHPStan/Reflection/ClassReflectionTest.php#L299
Call to method PHPUnit\Framework\Assert::assertInstanceOf() with 'ReflectionEnum' and PHPStan\BetterReflection\Reflection\Adapter\ReflectionEnum will always evaluate to true.
PHPStan with result cache (8.4)
Process completed with exit code 2.
PHPStan (8.1, ubuntu-latest): tests/PHPStan/Reflection/ClassReflectionTest.php#L299
Call to method PHPUnit\Framework\Assert::assertInstanceOf() with 'ReflectionEnum' and PHPStan\BetterReflection\Reflection\Adapter\ReflectionEnum will always evaluate to true.
PHPStan (8.1, ubuntu-latest)
Process completed with exit code 2.
PHPStan with result cache (8.3): tests/PHPStan/Reflection/ClassReflectionTest.php#L299
Call to method PHPUnit\Framework\Assert::assertInstanceOf() with 'ReflectionEnum' and PHPStan\BetterReflection\Reflection\Adapter\ReflectionEnum will always evaluate to true.
PHPStan with result cache (8.3)
Process completed with exit code 2.
PHPStan (8.0, ubuntu-latest): tests/PHPStan/Reflection/ClassReflectionTest.php#L299
Call to method PHPUnit\Framework\Assert::assertInstanceOf() with 'ReflectionEnum' and PHPStan\BetterReflection\Reflection\Adapter\ReflectionEnum will always evaluate to true.
PHPStan (8.0, ubuntu-latest)
Process completed with exit code 2.
PHPStan (7.4, ubuntu-latest): src/PhpDoc/ConstExprNodeResolver.php#L100
Call to method PHPStan\Reflection\ClassReflection::isEnum() will always evaluate to false.
PHPStan (7.4, ubuntu-latest): src/PhpDoc/TypeNodeResolver.php#L1169
Call to method PHPStan\Reflection\ClassReflection::isEnum() will always evaluate to false.
PHPStan (7.4, ubuntu-latest): src/PhpDoc/TypeNodeResolver.php#L1198
Call to method PHPStan\Reflection\ClassReflection::isEnum() will always evaluate to false.
PHPStan (7.4, ubuntu-latest): src/Reflection/ClassReflection.php#L458
Call to method PHPStan\Reflection\ClassReflection::isEnum() will always evaluate to false.
PHPStan (7.4, ubuntu-latest): src/Reflection/ClassReflection.php#L525
Call to method PHPStan\Reflection\ClassReflection::isEnum() will always evaluate to false.
PHPStan (7.4, ubuntu-latest): src/Reflection/ClassReflection.php#L701
Call to method PHPStan\Reflection\ClassReflection::isEnum() will always evaluate to false.
PHPStan (7.4, ubuntu-latest): src/Reflection/ClassReflection.php#L789
Call to method PHPStan\Reflection\ClassReflection::isEnum() will always evaluate to false.
PHPStan (7.4, ubuntu-latest): src/Reflection/ClassReflection.php#L825
Call to method PHPStan\Reflection\ClassReflection::isEnum() will always evaluate to false.
PHPStan (7.4, ubuntu-latest): src/Reflection/ClassReflection.php#L837
Call to method PHPStan\Reflection\ClassReflection::isEnum() will always evaluate to false.
PHPStan (7.4, ubuntu-latest): src/Reflection/ClassReflection.php#L884
Call to method PHPStan\Reflection\ClassReflection::isEnum() will always evaluate to false.
PHPStan (8.1, windows-latest): tests/PHPStan/Reflection/ClassReflectionTest.php#L299
Call to method PHPUnit\Framework\Assert::assertInstanceOf() with 'ReflectionEnum' and PHPStan\BetterReflection\Reflection\Adapter\ReflectionEnum will always evaluate to true.
PHPStan (8.1, windows-latest)
Process completed with exit code 1.
PHPStan (8.2, windows-latest): tests/PHPStan/Reflection/ClassReflectionTest.php#L299
Call to method PHPUnit\Framework\Assert::assertInstanceOf() with 'ReflectionEnum' and PHPStan\BetterReflection\Reflection\Adapter\ReflectionEnum will always evaluate to true.
PHPStan (8.2, windows-latest)
Process completed with exit code 1.
PHPStan (8.3, windows-latest): tests/PHPStan/Reflection/ClassReflectionTest.php#L299
Call to method PHPUnit\Framework\Assert::assertInstanceOf() with 'ReflectionEnum' and PHPStan\BetterReflection\Reflection\Adapter\ReflectionEnum will always evaluate to true.
PHPStan (8.3, windows-latest)
Process completed with exit code 1.
PHPStan (8.4, windows-latest): tests/PHPStan/Reflection/ClassReflectionTest.php#L299
Call to method PHPUnit\Framework\Assert::assertInstanceOf() with 'ReflectionEnum' and PHPStan\BetterReflection\Reflection\Adapter\ReflectionEnum will always evaluate to true.
PHPStan (8.4, windows-latest)
Process completed with exit code 1.
PHPStan (8.0, windows-latest): tests/PHPStan/Reflection/ClassReflectionTest.php#L299
Call to method PHPUnit\Framework\Assert::assertInstanceOf() with 'ReflectionEnum' and PHPStan\BetterReflection\Reflection\Adapter\ReflectionEnum will always evaluate to true.
PHPStan (8.0, windows-latest)
Process completed with exit code 1.
PHPStan (7.4, windows-latest): src/PhpDoc/ConstExprNodeResolver.php#L100
Call to method PHPStan\Reflection\ClassReflection::isEnum() will always evaluate to false.
PHPStan (7.4, windows-latest): src/PhpDoc/TypeNodeResolver.php#L1169
Call to method PHPStan\Reflection\ClassReflection::isEnum() will always evaluate to false.
PHPStan (7.4, windows-latest): src/PhpDoc/TypeNodeResolver.php#L1198
Call to method PHPStan\Reflection\ClassReflection::isEnum() will always evaluate to false.
PHPStan (7.4, windows-latest): src/Reflection/ClassReflection.php#L458
Call to method PHPStan\Reflection\ClassReflection::isEnum() will always evaluate to false.
PHPStan (7.4, windows-latest): src/Reflection/ClassReflection.php#L525
Call to method PHPStan\Reflection\ClassReflection::isEnum() will always evaluate to false.
PHPStan (7.4, windows-latest): src/Reflection/ClassReflection.php#L701
Call to method PHPStan\Reflection\ClassReflection::isEnum() will always evaluate to false.
PHPStan (7.4, windows-latest): src/Reflection/ClassReflection.php#L789
Call to method PHPStan\Reflection\ClassReflection::isEnum() will always evaluate to false.
PHPStan (7.4, windows-latest): src/Reflection/ClassReflection.php#L825
Call to method PHPStan\Reflection\ClassReflection::isEnum() will always evaluate to false.
PHPStan (7.4, windows-latest): src/Reflection/ClassReflection.php#L837
Call to method PHPStan\Reflection\ClassReflection::isEnum() will always evaluate to false.
PHPStan (7.4, windows-latest): src/Reflection/ClassReflection.php#L884
Call to method PHPStan\Reflection\ClassReflection::isEnum() will always evaluate to false.