Skip to content

Implement AttributeRequiresPhpVersionRule #522

Implement AttributeRequiresPhpVersionRule

Implement AttributeRequiresPhpVersionRule #522

Triggered via pull request December 5, 2025 07:24
@staabmstaabm
synchronize #268
staabm:req
Status Failure
Total duration 2m 10s
Artifacts

build.yml

on: pull_request
Matrix: PHPStan
Matrix: Tests
Coding Standard
18s
Coding Standard
Matrix: Lint
Matrix: Mutation Testing
Fit to window
Zoom out
Zoom in

Annotations

4 errors and 4 warnings
Mutation Testing (8.4, ubuntu-latest)
Process completed with exit code 1.
Mutation Testing (8.5, ubuntu-latest)
Process completed with exit code 1.
Mutation Testing (8.2, ubuntu-latest)
Process completed with exit code 1.
Mutation Testing (8.3, ubuntu-latest)
Process completed with exit code 1.
Mutation Testing (8.4, ubuntu-latest): src/Rules/PHPUnit/AttributeRequiresPhpVersionRule.php#L77
Escaped Mutant for Mutator "PHPStan\Infection\TrinaryLogicMutator": @@ @@ if (!is_numeric($args[0])) { continue; } - if ($this->PHPUnitVersion->requiresPhpversionAttributeWithOperator()->yes()) { + if (!$this->PHPUnitVersion->requiresPhpversionAttributeWithOperator()->no()) { $errors[] = RuleErrorBuilder::message(sprintf('Version requirement is missing operator.'))->identifier('phpunit.attributeRequiresPhpVersion')->build(); } elseif ($this->deprecationRulesInstalled && $this->PHPUnitVersion->deprecatesPhpversionAttributeWithoutOperator()->yes()) { $errors[] = RuleErrorBuilder::message(sprintf('Version requirement without operator is deprecated.'))->identifier('phpunit.attributeRequiresPhpVersion')->build();
Mutation Testing (8.5, ubuntu-latest): src/Rules/PHPUnit/AttributeRequiresPhpVersionRule.php#L77
Escaped Mutant for Mutator "PHPStan\Infection\TrinaryLogicMutator": @@ @@ if (!is_numeric($args[0])) { continue; } - if ($this->PHPUnitVersion->requiresPhpversionAttributeWithOperator()->yes()) { + if (!$this->PHPUnitVersion->requiresPhpversionAttributeWithOperator()->no()) { $errors[] = RuleErrorBuilder::message(sprintf('Version requirement is missing operator.'))->identifier('phpunit.attributeRequiresPhpVersion')->build(); } elseif ($this->deprecationRulesInstalled && $this->PHPUnitVersion->deprecatesPhpversionAttributeWithoutOperator()->yes()) { $errors[] = RuleErrorBuilder::message(sprintf('Version requirement without operator is deprecated.'))->identifier('phpunit.attributeRequiresPhpVersion')->build();
Mutation Testing (8.2, ubuntu-latest): src/Rules/PHPUnit/AttributeRequiresPhpVersionRule.php#L77
Escaped Mutant for Mutator "PHPStan\Infection\TrinaryLogicMutator": @@ @@ if (!is_numeric($args[0])) { continue; } - if ($this->PHPUnitVersion->requiresPhpversionAttributeWithOperator()->yes()) { + if (!$this->PHPUnitVersion->requiresPhpversionAttributeWithOperator()->no()) { $errors[] = RuleErrorBuilder::message(sprintf('Version requirement is missing operator.'))->identifier('phpunit.attributeRequiresPhpVersion')->build(); } elseif ($this->deprecationRulesInstalled && $this->PHPUnitVersion->deprecatesPhpversionAttributeWithoutOperator()->yes()) { $errors[] = RuleErrorBuilder::message(sprintf('Version requirement without operator is deprecated.'))->identifier('phpunit.attributeRequiresPhpVersion')->build();
Mutation Testing (8.3, ubuntu-latest): src/Rules/PHPUnit/AttributeRequiresPhpVersionRule.php#L77
Escaped Mutant for Mutator "PHPStan\Infection\TrinaryLogicMutator": @@ @@ if (!is_numeric($args[0])) { continue; } - if ($this->PHPUnitVersion->requiresPhpversionAttributeWithOperator()->yes()) { + if (!$this->PHPUnitVersion->requiresPhpversionAttributeWithOperator()->no()) { $errors[] = RuleErrorBuilder::message(sprintf('Version requirement is missing operator.'))->identifier('phpunit.attributeRequiresPhpVersion')->build(); } elseif ($this->deprecationRulesInstalled && $this->PHPUnitVersion->deprecatesPhpversionAttributeWithoutOperator()->yes()) { $errors[] = RuleErrorBuilder::message(sprintf('Version requirement without operator is deprecated.'))->identifier('phpunit.attributeRequiresPhpVersion')->build();