De-duplicate phpstan.php errors #24079
Triggered via pull request
November 17, 2025 06:54
Status
Cancelled
Total duration
6m 33s
Artifacts
–
static-analysis.yml
on: pull_request
Generate baseline
2m 6s
Generate PHP baseline
2m 19s
Matrix: PHPStan with result cache
Matrix: PHPStan
Annotations
23 errors
|
PHPStan (7.4, ubuntu-latest):
src/Reflection/ClassReflection.php#L936
Asserted type PHPStan\BetterReflection\Reflection\Adapter\ReflectionEnum for $this->reflection with type ReflectionClass can never happen.
|
|
PHPStan (7.4, ubuntu-latest):
src/Reflection/ClassReflection.php#L715
Method PHPStan\Reflection\ClassReflection::findConstructor() should return PHPStan\BetterReflection\Reflection\Adapter\ReflectionMethod|null but returns ReflectionMethod.
|
|
PHPStan (7.4, ubuntu-latest):
src/Reflection/ClassReflection.php#L708
Method PHPStan\Reflection\ClassReflection::findConstructor() should return PHPStan\BetterReflection\Reflection\Adapter\ReflectionMethod|null but returns ReflectionMethod.
|
|
PHPStan (7.4, ubuntu-latest):
src/Reflection/ClassReflection.php#L492
Call to an undefined method ReflectionClass::getAttributes().
|
|
PHPStan (7.4, ubuntu-latest):
src/Reflection/ClassReflection.php#L234
Method PHPStan\Reflection\ClassReflection::getNativeReflection() should return PHPStan\BetterReflection\Reflection\Adapter\ReflectionClass|PHPStan\BetterReflection\Reflection\Adapter\ReflectionEnum but returns ReflectionClass.
|
|
PHPStan (7.4, ubuntu-latest):
src/Reflection/ClassReflection.php#L232
Method PHPStan\Reflection\ClassReflection::getNativeReflection() never returns PHPStan\BetterReflection\Reflection\Adapter\ReflectionEnum so it can be removed from the return type.
|
|
PHPStan (7.4, ubuntu-latest):
src/Reflection/ClassReflection.php#L206
PHPDoc tag `@param` for parameter $reflection with type PHPStan\BetterReflection\Reflection\Adapter\ReflectionClass|PHPStan\BetterReflection\Reflection\Adapter\ReflectionEnum is not subtype of native type ReflectionClass.
|
|
PHPStan (7.4, ubuntu-latest):
src/Reflection/ClassReflection.php#L206
Method PHPStan\Reflection\ClassReflection::__construct() has parameter $reflection with generic class ReflectionClass but does not specify its types: T
|
|
PHPStan (7.4, ubuntu-latest):
src/Reflection/ClassReflection.php#L97
Property PHPStan\Reflection\ClassReflection::$reflection with generic class ReflectionClass does not specify its types: T
|
|
PHPStan (7.4, ubuntu-latest):
src/Reflection/ClassReflection.php#L97
PHPDoc tag `@var` for property PHPStan\Reflection\ClassReflection::$reflection with type PHPStan\BetterReflection\Reflection\Adapter\ReflectionClass|PHPStan\BetterReflection\Reflection\Adapter\ReflectionEnum is not subtype of native type ReflectionClass.
|
|
PHPStan (7.4, windows-latest):
src/Reflection/ClassReflection.php#L936
Asserted type PHPStan\BetterReflection\Reflection\Adapter\ReflectionEnum for $this->reflection with type ReflectionClass can never happen.
|
|
PHPStan (7.4, windows-latest):
src/Reflection/ClassReflection.php#L715
Method PHPStan\Reflection\ClassReflection::findConstructor() should return PHPStan\BetterReflection\Reflection\Adapter\ReflectionMethod|null but returns ReflectionMethod.
|
|
PHPStan (7.4, windows-latest):
src/Reflection/ClassReflection.php#L708
Method PHPStan\Reflection\ClassReflection::findConstructor() should return PHPStan\BetterReflection\Reflection\Adapter\ReflectionMethod|null but returns ReflectionMethod.
|
|
PHPStan (7.4, windows-latest):
src/Reflection/ClassReflection.php#L492
Call to an undefined method ReflectionClass::getAttributes().
|
|
PHPStan (7.4, windows-latest):
src/Reflection/ClassReflection.php#L234
Method PHPStan\Reflection\ClassReflection::getNativeReflection() should return PHPStan\BetterReflection\Reflection\Adapter\ReflectionClass|PHPStan\BetterReflection\Reflection\Adapter\ReflectionEnum but returns ReflectionClass.
|
|
PHPStan (7.4, windows-latest):
src/Reflection/ClassReflection.php#L232
Method PHPStan\Reflection\ClassReflection::getNativeReflection() never returns PHPStan\BetterReflection\Reflection\Adapter\ReflectionEnum so it can be removed from the return type.
|
|
PHPStan (7.4, windows-latest):
src/Reflection/ClassReflection.php#L206
PHPDoc tag `@param` for parameter $reflection with type PHPStan\BetterReflection\Reflection\Adapter\ReflectionClass|PHPStan\BetterReflection\Reflection\Adapter\ReflectionEnum is not subtype of native type ReflectionClass.
|
|
PHPStan (7.4, windows-latest):
src/Reflection/ClassReflection.php#L206
Method PHPStan\Reflection\ClassReflection::__construct() has parameter $reflection with generic class ReflectionClass but does not specify its types: T
|
|
PHPStan (7.4, windows-latest):
src/Reflection/ClassReflection.php#L97
Property PHPStan\Reflection\ClassReflection::$reflection with generic class ReflectionClass does not specify its types: T
|
|
PHPStan (7.4, windows-latest):
src/Reflection/ClassReflection.php#L97
PHPDoc tag `@var` for property PHPStan\Reflection\ClassReflection::$reflection with type PHPStan\BetterReflection\Reflection\Adapter\ReflectionClass|PHPStan\BetterReflection\Reflection\Adapter\ReflectionEnum is not subtype of native type ReflectionClass.
|
|
PHPStan (8.0, windows-latest)
Canceling since a higher priority waiting request for sa-de-dup exists
|
|
PHPStan (8.0, windows-latest)
The operation was canceled.
|
|
Static Analysis
Canceling since a higher priority waiting request for sa-de-dup exists
|