Implement AttributeRequiresPhpVersionRule #520
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();
|