Skip to content

Use template-covariant in CompositeRule #23494

Use template-covariant in CompositeRule

Use template-covariant in CompositeRule #23494

Triggered via pull request October 14, 2025 17:15
Status Failure
Total duration 4m 46s
Artifacts

static-analysis.yml

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

Annotations

37 errors
PHPStan with result cache (8.4)
Process completed with exit code 2.
PHPStan with result cache (8.4): src/Testing/CompositeRule.php#L30
Variance annotation is only allowed for type parameters of classes and interfaces, but occurs in template type T in in method PHPStan\Testing\CompositeRule::__construct().
PHPStan (8.5, ubuntu-latest)
Process completed with exit code 2.
PHPStan (8.5, ubuntu-latest): src/Testing/CompositeRule.php#L30
Variance annotation is only allowed for type parameters of classes and interfaces, but occurs in template type T in in method PHPStan\Testing\CompositeRule::__construct().
PHPStan (8.2, ubuntu-latest)
Process completed with exit code 2.
PHPStan (8.2, ubuntu-latest): src/Testing/CompositeRule.php#L30
Variance annotation is only allowed for type parameters of classes and interfaces, but occurs in template type T in in method PHPStan\Testing\CompositeRule::__construct().
PHPStan (8.3, ubuntu-latest)
Process completed with exit code 2.
PHPStan (8.3, ubuntu-latest): src/Testing/CompositeRule.php#L30
Variance annotation is only allowed for type parameters of classes and interfaces, but occurs in template type T in in method PHPStan\Testing\CompositeRule::__construct().
PHPStan with result cache (8.5)
Process completed with exit code 2.
PHPStan with result cache (8.5): src/Testing/CompositeRule.php#L30
Variance annotation is only allowed for type parameters of classes and interfaces, but occurs in template type T in in method PHPStan\Testing\CompositeRule::__construct().
Generate baseline
Process completed with exit code 1.
PHPStan with result cache (8.2)
Process completed with exit code 2.
PHPStan with result cache (8.2): src/Testing/CompositeRule.php#L30
Variance annotation is only allowed for type parameters of classes and interfaces, but occurs in template type T in in method PHPStan\Testing\CompositeRule::__construct().
PHPStan with result cache (8.3)
Process completed with exit code 2.
PHPStan with result cache (8.3): src/Testing/CompositeRule.php#L30
Variance annotation is only allowed for type parameters of classes and interfaces, but occurs in template type T in in method PHPStan\Testing\CompositeRule::__construct().
PHPStan (8.4, ubuntu-latest)
Process completed with exit code 2.
PHPStan (8.4, ubuntu-latest): src/Testing/CompositeRule.php#L30
Variance annotation is only allowed for type parameters of classes and interfaces, but occurs in template type T in in method PHPStan\Testing\CompositeRule::__construct().
PHPStan (8.1, ubuntu-latest)
Process completed with exit code 2.
PHPStan (8.1, ubuntu-latest): src/Testing/CompositeRule.php#L30
Variance annotation is only allowed for type parameters of classes and interfaces, but occurs in template type T in in method PHPStan\Testing\CompositeRule::__construct().
PHPStan (8.0, ubuntu-latest)
Process completed with exit code 2.
PHPStan (8.0, ubuntu-latest): src/Testing/CompositeRule.php#L30
Variance annotation is only allowed for type parameters of classes and interfaces, but occurs in template type T in in method PHPStan\Testing\CompositeRule::__construct().
PHPStan (7.4, ubuntu-latest)
Process completed with exit code 2.
PHPStan (7.4, ubuntu-latest): src/Testing/CompositeRule.php#L30
Variance annotation is only allowed for type parameters of classes and interfaces, but occurs in template type T in in method PHPStan\Testing\CompositeRule::__construct().
PHPStan (8.3, windows-latest)
Process completed with exit code 1.
PHPStan (8.3, windows-latest): src/Testing/CompositeRule.php#L30
Variance annotation is only allowed for type parameters of classes and interfaces, but occurs in template type T in in method PHPStan\Testing\CompositeRule::__construct().
PHPStan (8.2, windows-latest)
Process completed with exit code 1.
PHPStan (8.2, windows-latest): src/Testing/CompositeRule.php#L30
Variance annotation is only allowed for type parameters of classes and interfaces, but occurs in template type T in in method PHPStan\Testing\CompositeRule::__construct().
PHPStan (8.5, windows-latest)
Process completed with exit code 1.
PHPStan (8.5, windows-latest): src/Testing/CompositeRule.php#L30
Variance annotation is only allowed for type parameters of classes and interfaces, but occurs in template type T in in method PHPStan\Testing\CompositeRule::__construct().
PHPStan (8.4, windows-latest)
Process completed with exit code 1.
PHPStan (8.4, windows-latest): src/Testing/CompositeRule.php#L30
Variance annotation is only allowed for type parameters of classes and interfaces, but occurs in template type T in in method PHPStan\Testing\CompositeRule::__construct().
PHPStan (8.1, windows-latest)
Process completed with exit code 1.
PHPStan (8.1, windows-latest): src/Testing/CompositeRule.php#L30
Variance annotation is only allowed for type parameters of classes and interfaces, but occurs in template type T in in method PHPStan\Testing\CompositeRule::__construct().
PHPStan (8.0, windows-latest)
Process completed with exit code 1.
PHPStan (8.0, windows-latest): src/Testing/CompositeRule.php#L30
Variance annotation is only allowed for type parameters of classes and interfaces, but occurs in template type T in in method PHPStan\Testing\CompositeRule::__construct().
PHPStan (7.4, windows-latest)
Process completed with exit code 1.
PHPStan (7.4, windows-latest): src/Testing/CompositeRule.php#L30
Variance annotation is only allowed for type parameters of classes and interfaces, but occurs in template type T in in method PHPStan\Testing\CompositeRule::__construct().