Skip to content

Commit 5da7e1e

Browse files
gharlannicolas-grekas
authored andcommitted
optimize in_array calls
1 parent 1219d59 commit 5da7e1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Command/XliffLintCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ private function getFiles(string $fileOrDirectory): iterable
226226
}
227227

228228
foreach ($this->getDirectoryIterator($fileOrDirectory) as $file) {
229-
if (!\in_array($file->getExtension(), ['xlf', 'xliff'])) {
229+
if (!\in_array($file->getExtension(), ['xlf', 'xliff'], true)) {
230230
continue;
231231
}
232232

0 commit comments

Comments
 (0)