Skip to content

Commit cf94fd4

Browse files
committed
Merge pull request #13 from fprochazka/feature/533-compatibility-travis
Travis + 5.3.3 compatibility
2 parents 168eb01 + 380b842 commit cf94fd4

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

.travis.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
language: php
2+
3+
php:
4+
- 5.3.3
5+
- 5.4
6+
- 5.5
7+
8+
before_script:
9+
- composer self-update
10+
- composer install --no-interaction --prefer-source --dev
11+
12+
script: ./parallel-lint --exclude vendor .

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)