Skip to content

Commit 8427482

Browse files
committed
fix rector
1 parent 1f02472 commit 8427482

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/EnforceAaaPatternRector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ private function isAaaComment(Comment $comment): bool
8282
$coreText = trim(string: (string) preg_replace(pattern: '/^\/\/\s*|^\/\*\s*|\s*\*\/$/', replacement: '', subject: $text));
8383
$coreTextLower = strtolower(string: $coreText);
8484

85-
return in_array($coreTextLower, ['arrange', 'act', 'assert'], true);
85+
return in_array(needle: $coreTextLower, haystack: ['arrange', 'act', 'assert'], strict: true);
8686
}
8787

8888
private function removeAaaComments(Node $stmt): void

0 commit comments

Comments
 (0)