Skip to content

Commit 28cac3b

Browse files
committed
Fix
1 parent acb109f commit 28cac3b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/PHPStan/Rules/Keywords/RequireFileExistsRuleTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
use function implode;
99
use function realpath;
1010
use function set_include_path;
11+
use const DIRECTORY_SEPARATOR;
1112
use const PATH_SEPARATOR;
1213

1314
/**
@@ -129,7 +130,7 @@ public function testBug12203(): void
129130
5,
130131
],
131132
[
132-
'Path in require_once() "' . __DIR__ . '/data/../bug-12203-sure-does-not-exist.php" is not a file or it does not exist.',
133+
'Path in require_once() "' . __DIR__ . DIRECTORY_SEPARATOR . 'data/../bug-12203-sure-does-not-exist.php" is not a file or it does not exist.',
133134
6,
134135
],
135136
]);

0 commit comments

Comments
 (0)