Skip to content

Commit 07b590b

Browse files
committed
prevent double negation
1 parent a7bfb48 commit 07b590b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Rules/PHPUnit/AttributeRequiresPhpVersionRule.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public function processNode(Node $node, Scope $scope): array
7474
continue;
7575
}
7676

77-
if ($this->PHPUnitVersion->notSupportsPhpversionAttributeWithoutOperator()->yes()) {
77+
if ($this->PHPUnitVersion->requiresPhpversionAttributeWithOperator()->yes()) {
7878
$errors[] = RuleErrorBuilder::message(
7979
sprintf('Version requirement is missing operator.'),
8080
)

src/Rules/PHPUnit/PHPUnitVersion.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function supportsNamedArgumentsInDataProvider(): TrinaryLogic
4949
return TrinaryLogic::createFromBoolean($this->majorVersion >= 11);
5050
}
5151

52-
public function notSupportsPhpversionAttributeWithoutOperator(): TrinaryLogic
52+
public function requiresPhpversionAttributeWithOperator(): TrinaryLogic
5353
{
5454
return TrinaryLogic::createFromBoolean($this->majorVersion >= 13);
5555
}

0 commit comments

Comments
 (0)