We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1f02472 commit 8427482Copy full SHA for 8427482
src/EnforceAaaPatternRector.php
@@ -82,7 +82,7 @@ private function isAaaComment(Comment $comment): bool
82
$coreText = trim(string: (string) preg_replace(pattern: '/^\/\/\s*|^\/\*\s*|\s*\*\/$/', replacement: '', subject: $text));
83
$coreTextLower = strtolower(string: $coreText);
84
85
- return in_array($coreTextLower, ['arrange', 'act', 'assert'], true);
+ return in_array(needle: $coreTextLower, haystack: ['arrange', 'act', 'assert'], strict: true);
86
}
87
88
private function removeAaaComments(Node $stmt): void
0 commit comments