Skip to content

Commit 380b842

Browse files
committed
Fix linting on php 5.3.3
1 parent 0aaf6b6 commit 380b842

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Manager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ protected function getFilesFromPaths(array $paths, array $extensions, array $exc
243243

244244
/** @var \SplFileInfo[] $iterator */
245245
foreach ($iterator as $directoryFile) {
246-
if (isset($extensions[$directoryFile->getExtension()])) {
246+
if (isset($extensions[pathinfo($directoryFile->getFilename(), PATHINFO_EXTENSION)])) {
247247
$files[] = (string) $directoryFile;
248248
}
249249
}

0 commit comments

Comments
 (0)