Skip to content

Prevent global side-effect in Bug13813IntegrationTest #24110

Prevent global side-effect in Bug13813IntegrationTest

Prevent global side-effect in Bug13813IntegrationTest #24110

Triggered via pull request November 19, 2025 09:30
Status Failure
Total duration 5m 16s
Artifacts

static-analysis.yml

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

Annotations

26 errors
PHPStan (8.0, ubuntu-latest)
Process completed with exit code 2.
PHPStan (8.0, ubuntu-latest): src/Analyser/Generator/RunInFiberResult.php#L18
Template type T is declared as covariant, but occurs in invariant position in property PHPStan\Analyser\Generator\RunInFiberResult::$value.
PHPStan (8.0, ubuntu-latest): src/Analyser/Generator/RunInFiberRequest.php#L25
Template type T is declared as covariant, but occurs in invariant position in property PHPStan\Analyser\Generator\RunInFiberRequest::$callback.
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 (8.0, windows-latest)
Process completed with exit code 1.
PHPStan (8.0, windows-latest): src/Analyser/Generator/RunInFiberResult.php#L18
Template type T is declared as covariant, but occurs in invariant position in property PHPStan\Analyser\Generator\RunInFiberResult::$value.
PHPStan (8.0, windows-latest): src/Analyser/Generator/RunInFiberRequest.php#L25
Template type T is declared as covariant, but occurs in invariant position in property PHPStan\Analyser\Generator\RunInFiberRequest::$callback.
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.