Skip to content

Implement AttributeRequiresPhpVersionRule #520

Implement AttributeRequiresPhpVersionRule

Implement AttributeRequiresPhpVersionRule #520

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

build.yml

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

Annotations

4 errors and 8 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.3, ubuntu-latest)
Process completed with exit code 1.
Mutation Testing (8.2, ubuntu-latest)
Process completed with exit code 1.
Mutation Testing (8.4, ubuntu-latest): src/Rules/PHPUnit/AttributeRequiresPhpVersionRule.php#L85
Escaped Mutant for Mutator "PHPStan\Infection\TrinaryLogicMutator": @@ @@ } if ($this->PHPUnitVersion->notSupportsPhpversionAttributeWithoutOperator()->yes()) { $errors[] = RuleErrorBuilder::message(sprintf('Version requirement is missing operator.'))->identifier('phpunit.attributeRequiresPhpVersion')->build(); - } elseif ($this->deprecationRulesInstalled && $this->PHPUnitVersion->deprecatesPhpversionAttributeWithoutOperator()->yes()) { + } elseif ($this->deprecationRulesInstalled && !$this->PHPUnitVersion->deprecatesPhpversionAttributeWithoutOperator()->no()) { $errors[] = RuleErrorBuilder::message(sprintf('Version requirement without operator is deprecated.'))->identifier('phpunit.attributeRequiresPhpVersion')->build(); } }
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->notSupportsPhpversionAttributeWithoutOperator()->yes()) { + if (!$this->PHPUnitVersion->notSupportsPhpversionAttributeWithoutOperator()->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#L85
Escaped Mutant for Mutator "PHPStan\Infection\TrinaryLogicMutator": @@ @@ } if ($this->PHPUnitVersion->notSupportsPhpversionAttributeWithoutOperator()->yes()) { $errors[] = RuleErrorBuilder::message(sprintf('Version requirement is missing operator.'))->identifier('phpunit.attributeRequiresPhpVersion')->build(); - } elseif ($this->deprecationRulesInstalled && $this->PHPUnitVersion->deprecatesPhpversionAttributeWithoutOperator()->yes()) { + } elseif ($this->deprecationRulesInstalled && !$this->PHPUnitVersion->deprecatesPhpversionAttributeWithoutOperator()->no()) { $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->notSupportsPhpversionAttributeWithoutOperator()->yes()) { + if (!$this->PHPUnitVersion->notSupportsPhpversionAttributeWithoutOperator()->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#L85
Escaped Mutant for Mutator "PHPStan\Infection\TrinaryLogicMutator": @@ @@ } if ($this->PHPUnitVersion->notSupportsPhpversionAttributeWithoutOperator()->yes()) { $errors[] = RuleErrorBuilder::message(sprintf('Version requirement is missing operator.'))->identifier('phpunit.attributeRequiresPhpVersion')->build(); - } elseif ($this->deprecationRulesInstalled && $this->PHPUnitVersion->deprecatesPhpversionAttributeWithoutOperator()->yes()) { + } elseif ($this->deprecationRulesInstalled && !$this->PHPUnitVersion->deprecatesPhpversionAttributeWithoutOperator()->no()) { $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->notSupportsPhpversionAttributeWithoutOperator()->yes()) { + if (!$this->PHPUnitVersion->notSupportsPhpversionAttributeWithoutOperator()->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#L85
Escaped Mutant for Mutator "PHPStan\Infection\TrinaryLogicMutator": @@ @@ } if ($this->PHPUnitVersion->notSupportsPhpversionAttributeWithoutOperator()->yes()) { $errors[] = RuleErrorBuilder::message(sprintf('Version requirement is missing operator.'))->identifier('phpunit.attributeRequiresPhpVersion')->build(); - } elseif ($this->deprecationRulesInstalled && $this->PHPUnitVersion->deprecatesPhpversionAttributeWithoutOperator()->yes()) { + } elseif ($this->deprecationRulesInstalled && !$this->PHPUnitVersion->deprecatesPhpversionAttributeWithoutOperator()->no()) { $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->notSupportsPhpversionAttributeWithoutOperator()->yes()) { + if (!$this->PHPUnitVersion->notSupportsPhpversionAttributeWithoutOperator()->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();