Skip to content

Detect duplicate declarations for functions and constants #24100

Detect duplicate declarations for functions and constants

Detect duplicate declarations for functions and constants #24100

Triggered via pull request November 18, 2025 00:52
Status Failure
Total duration 5m 18s
Artifacts

static-analysis.yml

on: pull_request
Generate baseline
2m 7s
Generate baseline
Generate PHP baseline
2m 14s
Generate PHP baseline
Matrix: PHPStan with result cache
Matrix: PHPStan
Fit to window
Zoom out
Zoom in

Annotations

20 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.