Skip to content

Commit 68f8f4d

Browse files
committed
Update PHPUnitVersion.php
1 parent f258583 commit 68f8f4d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Rules/PHPUnit/PHPUnitVersion.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ public function supportsNamedArgumentsInDataProvider(): TrinaryLogic
5151

5252
public function requiresPhpversionAttributeWithOperator(): TrinaryLogic
5353
{
54+
if ($this->majorVersion === null) {
55+
return TrinaryLogic::createMaybe();
56+
}
5457
return TrinaryLogic::createFromBoolean($this->majorVersion >= 13);
5558
}
5659

0 commit comments

Comments
 (0)