Skip to content

Commit 04c876d

Browse files
committed
test also on windows
1 parent 3f9eb31 commit 04c876d

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/e2e-tests.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,10 @@ jobs:
386386
cd e2e/bug-12972
387387
../../bin/phpstan analyze
388388
os: "macos-latest"
389+
- script: |
390+
cd e2e/bug-12972
391+
../../bin/phpstan analyze
392+
os: "windows-latest"
389393
390394
steps:
391395
- name: "Checkout"

src/Analyser/AnalysedFilesResolver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ final class AnalysedFilesResolver
2020
*/
2121
public function __construct(array $files = [])
2222
{
23-
$this->caseInsensitiveFilesystem = PHP_OS_FAMILY === 'Darwin';
23+
$this->caseInsensitiveFilesystem = PHP_OS_FAMILY === 'Windows' || PHP_OS_FAMILY === 'Darwin';
2424
$this->setAnalysedFiles($files);
2525
}
2626

0 commit comments

Comments
 (0)