Skip to content

feat: add rule to prevent comments after attributes #22938

feat: add rule to prevent comments after attributes

feat: add rule to prevent comments after attributes #22938

Triggered via pull request September 13, 2025 12:35
Status Failure
Total duration 3m 35s
Artifacts

static-analysis.yml

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

Annotations

71 errors and 7 notices
PHPStan (7.4, ubuntu-latest)
Process completed with exit code 255.
PHPStan (7.4, windows-latest)
Process completed with exit code 255.
PHPStan with result cache (8.4)
Process completed with exit code 2.
PHPStan with result cache (8.4): src/Rules/PhpDoc/NoCommentsAfterAttributesRule.php#L64
Parameter #1 ...$arg1 of function min expects non-empty-array, array<-1|int<1, max>> given.
PHPStan with result cache (8.4): src/Rules/PhpDoc/NoCommentsAfterAttributesRule.php#L62
Parameter #1 ...$arg1 of function min expects non-empty-array, array<-1|int<1, max>> given.
PHPStan with result cache (8.4): src/Rules/PhpDoc/NoCommentsAfterAttributesRule.php#L55
Parameter #1 ...$arg1 of function max expects non-empty-array, array<-1|int<1, max>> given.
PHPStan (8.3, ubuntu-latest)
Process completed with exit code 2.
PHPStan (8.3, ubuntu-latest): src/Rules/PhpDoc/NoCommentsAfterAttributesRule.php#L64
Parameter #1 ...$arg1 of function min expects non-empty-array, array<-1|int<1, max>> given.
PHPStan (8.3, ubuntu-latest): src/Rules/PhpDoc/NoCommentsAfterAttributesRule.php#L62
Parameter #1 ...$arg1 of function min expects non-empty-array, array<-1|int<1, max>> given.
PHPStan (8.3, ubuntu-latest): src/Rules/PhpDoc/NoCommentsAfterAttributesRule.php#L55
Parameter #1 ...$arg1 of function max expects non-empty-array, array<-1|int<1, max>> given.
PHPStan with result cache (8.3)
Process completed with exit code 2.
PHPStan with result cache (8.3): src/Rules/PhpDoc/NoCommentsAfterAttributesRule.php#L64
Parameter #1 ...$arg1 of function min expects non-empty-array, array<-1|int<1, max>> given.
PHPStan with result cache (8.3): src/Rules/PhpDoc/NoCommentsAfterAttributesRule.php#L62
Parameter #1 ...$arg1 of function min expects non-empty-array, array<-1|int<1, max>> given.
PHPStan with result cache (8.3): src/Rules/PhpDoc/NoCommentsAfterAttributesRule.php#L55
Parameter #1 ...$arg1 of function max expects non-empty-array, array<-1|int<1, max>> given.
PHPStan with result cache (8.2)
Process completed with exit code 2.
PHPStan with result cache (8.2): src/Rules/PhpDoc/NoCommentsAfterAttributesRule.php#L64
Parameter #1 ...$arg1 of function min expects non-empty-array, array<-1|int<1, max>> given.
PHPStan with result cache (8.2): src/Rules/PhpDoc/NoCommentsAfterAttributesRule.php#L62
Parameter #1 ...$arg1 of function min expects non-empty-array, array<-1|int<1, max>> given.
PHPStan with result cache (8.2): src/Rules/PhpDoc/NoCommentsAfterAttributesRule.php#L55
Parameter #1 ...$arg1 of function max expects non-empty-array, array<-1|int<1, max>> given.
Generate baseline
Process completed with exit code 1.
PHPStan with result cache (8.5)
Process completed with exit code 2.
PHPStan with result cache (8.5): src/Rules/PhpDoc/NoCommentsAfterAttributesRule.php#L64
Parameter #1 ...$arg1 of function min expects non-empty-array, array<-1|int<1, max>> given.
PHPStan with result cache (8.5): src/Rules/PhpDoc/NoCommentsAfterAttributesRule.php#L62
Parameter #1 ...$arg1 of function min expects non-empty-array, array<-1|int<1, max>> given.
PHPStan with result cache (8.5): src/Rules/PhpDoc/NoCommentsAfterAttributesRule.php#L55
Parameter #1 ...$arg1 of function max expects non-empty-array, array<-1|int<1, max>> given.
PHPStan (8.5, ubuntu-latest)
Process completed with exit code 2.
PHPStan (8.5, ubuntu-latest): src/Rules/PhpDoc/NoCommentsAfterAttributesRule.php#L64
Parameter #1 ...$arg1 of function min expects non-empty-array, array<-1|int<1, max>> given.
PHPStan (8.5, ubuntu-latest): src/Rules/PhpDoc/NoCommentsAfterAttributesRule.php#L62
Parameter #1 ...$arg1 of function min expects non-empty-array, array<-1|int<1, max>> given.
PHPStan (8.5, ubuntu-latest): src/Rules/PhpDoc/NoCommentsAfterAttributesRule.php#L55
Parameter #1 ...$arg1 of function max expects non-empty-array, array<-1|int<1, max>> given.
PHPStan (8.2, ubuntu-latest)
Process completed with exit code 2.
PHPStan (8.2, ubuntu-latest): src/Rules/PhpDoc/NoCommentsAfterAttributesRule.php#L64
Parameter #1 ...$arg1 of function min expects non-empty-array, array<-1|int<1, max>> given.
PHPStan (8.2, ubuntu-latest): src/Rules/PhpDoc/NoCommentsAfterAttributesRule.php#L62
Parameter #1 ...$arg1 of function min expects non-empty-array, array<-1|int<1, max>> given.
PHPStan (8.2, ubuntu-latest): src/Rules/PhpDoc/NoCommentsAfterAttributesRule.php#L55
Parameter #1 ...$arg1 of function max expects non-empty-array, array<-1|int<1, max>> given.
PHPStan (8.4, ubuntu-latest)
Process completed with exit code 2.
PHPStan (8.4, ubuntu-latest): src/Rules/PhpDoc/NoCommentsAfterAttributesRule.php#L64
Parameter #1 ...$arg1 of function min expects non-empty-array, array<-1|int<1, max>> given.
PHPStan (8.4, ubuntu-latest): src/Rules/PhpDoc/NoCommentsAfterAttributesRule.php#L62
Parameter #1 ...$arg1 of function min expects non-empty-array, array<-1|int<1, max>> given.
PHPStan (8.4, ubuntu-latest): src/Rules/PhpDoc/NoCommentsAfterAttributesRule.php#L55
Parameter #1 ...$arg1 of function max expects non-empty-array, array<-1|int<1, max>> given.
PHPStan (8.1, ubuntu-latest)
Process completed with exit code 2.
PHPStan (8.1, ubuntu-latest): tests/PHPStan/Rules/PhpDoc/NoCommentsAfterAttributesRuleTest.php#L10
Attribute class PHPUnit\Framework\Attributes\CoversNothing does not exist.
PHPStan (8.1, ubuntu-latest): src/Rules/PhpDoc/NoCommentsAfterAttributesRule.php#L64
Parameter #1 ...$arg1 of function min expects non-empty-array, array<-1|int<1, max>> given.
PHPStan (8.1, ubuntu-latest): src/Rules/PhpDoc/NoCommentsAfterAttributesRule.php#L62
Parameter #1 ...$arg1 of function min expects non-empty-array, array<-1|int<1, max>> given.
PHPStan (8.1, ubuntu-latest): src/Rules/PhpDoc/NoCommentsAfterAttributesRule.php#L55
Parameter #1 ...$arg1 of function max expects non-empty-array, array<-1|int<1, max>> given.
PHPStan (8.0, ubuntu-latest)
Process completed with exit code 2.
PHPStan (8.0, ubuntu-latest): tests/PHPStan/Rules/PhpDoc/NoCommentsAfterAttributesRuleTest.php#L10
Attribute class PHPUnit\Framework\Attributes\CoversNothing does not exist.
PHPStan (8.0, ubuntu-latest): src/Rules/PhpDoc/NoCommentsAfterAttributesRule.php#L64
Parameter #1 ...$arg1 of function min expects non-empty-array, array<-1|int<1, max>> given.
PHPStan (8.0, ubuntu-latest): src/Rules/PhpDoc/NoCommentsAfterAttributesRule.php#L62
Parameter #1 ...$arg1 of function min expects non-empty-array, array<-1|int<1, max>> given.
PHPStan (8.0, ubuntu-latest): src/Rules/PhpDoc/NoCommentsAfterAttributesRule.php#L55
Parameter #1 ...$arg1 of function max expects non-empty-array, array<-1|int<1, max>> given.
PHPStan (8.5, windows-latest)
Process completed with exit code 1.
PHPStan (8.5, windows-latest): src/Rules/PhpDoc/NoCommentsAfterAttributesRule.php#L64
Parameter #1 ...$arg1 of function min expects non-empty-array, array<-1|int<1, max>> given.
PHPStan (8.5, windows-latest): src/Rules/PhpDoc/NoCommentsAfterAttributesRule.php#L62
Parameter #1 ...$arg1 of function min expects non-empty-array, array<-1|int<1, max>> given.
PHPStan (8.5, windows-latest): src/Rules/PhpDoc/NoCommentsAfterAttributesRule.php#L55
Parameter #1 ...$arg1 of function max expects non-empty-array, array<-1|int<1, max>> given.
PHPStan (8.4, windows-latest)
Process completed with exit code 1.
PHPStan (8.4, windows-latest): src/Rules/PhpDoc/NoCommentsAfterAttributesRule.php#L64
Parameter #1 ...$arg1 of function min expects non-empty-array, array<-1|int<1, max>> given.
PHPStan (8.4, windows-latest): src/Rules/PhpDoc/NoCommentsAfterAttributesRule.php#L62
Parameter #1 ...$arg1 of function min expects non-empty-array, array<-1|int<1, max>> given.
PHPStan (8.4, windows-latest): src/Rules/PhpDoc/NoCommentsAfterAttributesRule.php#L55
Parameter #1 ...$arg1 of function max expects non-empty-array, array<-1|int<1, max>> given.
PHPStan (8.2, windows-latest)
Process completed with exit code 1.
PHPStan (8.2, windows-latest): src/Rules/PhpDoc/NoCommentsAfterAttributesRule.php#L64
Parameter #1 ...$arg1 of function min expects non-empty-array, array<-1|int<1, max>> given.
PHPStan (8.2, windows-latest): src/Rules/PhpDoc/NoCommentsAfterAttributesRule.php#L62
Parameter #1 ...$arg1 of function min expects non-empty-array, array<-1|int<1, max>> given.
PHPStan (8.2, windows-latest): src/Rules/PhpDoc/NoCommentsAfterAttributesRule.php#L55
Parameter #1 ...$arg1 of function max expects non-empty-array, array<-1|int<1, max>> given.
PHPStan (8.3, windows-latest)
Process completed with exit code 1.
PHPStan (8.3, windows-latest): src/Rules/PhpDoc/NoCommentsAfterAttributesRule.php#L64
Parameter #1 ...$arg1 of function min expects non-empty-array, array<-1|int<1, max>> given.
PHPStan (8.3, windows-latest): src/Rules/PhpDoc/NoCommentsAfterAttributesRule.php#L62
Parameter #1 ...$arg1 of function min expects non-empty-array, array<-1|int<1, max>> given.
PHPStan (8.3, windows-latest): src/Rules/PhpDoc/NoCommentsAfterAttributesRule.php#L55
Parameter #1 ...$arg1 of function max expects non-empty-array, array<-1|int<1, max>> given.
PHPStan (8.1, windows-latest)
Process completed with exit code 1.
PHPStan (8.1, windows-latest): tests/PHPStan/Rules/PhpDoc/NoCommentsAfterAttributesRuleTest.php#L10
Attribute class PHPUnit\Framework\Attributes\CoversNothing does not exist.
PHPStan (8.1, windows-latest): src/Rules/PhpDoc/NoCommentsAfterAttributesRule.php#L64
Parameter #1 ...$arg1 of function min expects non-empty-array, array<-1|int<1, max>> given.
PHPStan (8.1, windows-latest): src/Rules/PhpDoc/NoCommentsAfterAttributesRule.php#L62
Parameter #1 ...$arg1 of function min expects non-empty-array, array<-1|int<1, max>> given.
PHPStan (8.1, windows-latest): src/Rules/PhpDoc/NoCommentsAfterAttributesRule.php#L55
Parameter #1 ...$arg1 of function max expects non-empty-array, array<-1|int<1, max>> given.
PHPStan (8.0, windows-latest)
Process completed with exit code 1.
PHPStan (8.0, windows-latest): tests/PHPStan/Rules/PhpDoc/NoCommentsAfterAttributesRuleTest.php#L10
Attribute class PHPUnit\Framework\Attributes\CoversNothing does not exist.
PHPStan (8.0, windows-latest): src/Rules/PhpDoc/NoCommentsAfterAttributesRule.php#L64
Parameter #1 ...$arg1 of function min expects non-empty-array, array<-1|int<1, max>> given.
PHPStan (8.0, windows-latest): src/Rules/PhpDoc/NoCommentsAfterAttributesRule.php#L62
Parameter #1 ...$arg1 of function min expects non-empty-array, array<-1|int<1, max>> given.
PHPStan (8.0, windows-latest): src/Rules/PhpDoc/NoCommentsAfterAttributesRule.php#L55
Parameter #1 ...$arg1 of function max expects non-empty-array, array<-1|int<1, max>> given.
PHPStan (7.4, windows-latest)
The windows-latest label will migrate from Windows Server 2022 to Windows Server 2025 beginning September 2, 2025. For more information see https://github.com/actions/runner-images/issues/12677
PHPStan (8.5, windows-latest)
The windows-latest label will migrate from Windows Server 2022 to Windows Server 2025 beginning September 2, 2025. For more information see https://github.com/actions/runner-images/issues/12677
PHPStan (8.4, windows-latest)
The windows-latest label will migrate from Windows Server 2022 to Windows Server 2025 beginning September 2, 2025. For more information see https://github.com/actions/runner-images/issues/12677
PHPStan (8.2, windows-latest)
The windows-latest label will migrate from Windows Server 2022 to Windows Server 2025 beginning September 2, 2025. For more information see https://github.com/actions/runner-images/issues/12677
PHPStan (8.3, windows-latest)
The windows-latest label will migrate from Windows Server 2022 to Windows Server 2025 beginning September 2, 2025. For more information see https://github.com/actions/runner-images/issues/12677
PHPStan (8.1, windows-latest)
The windows-latest label will migrate from Windows Server 2022 to Windows Server 2025 beginning September 2, 2025. For more information see https://github.com/actions/runner-images/issues/12677
PHPStan (8.0, windows-latest)
The windows-latest label will migrate from Windows Server 2022 to Windows Server 2025 beginning September 2, 2025. For more information see https://github.com/actions/runner-images/issues/12677