We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f695262 commit 574a2d1Copy full SHA for 574a2d1
src/Utils/Finder.php
@@ -505,6 +505,6 @@ private function buildPattern(string $mask): string
505
'\-' => '-',
506
],
507
);
508
- return '#' . $anchor . $pattern . '$#D' . (defined('PHP_WINDOWS_VERSION_BUILD') ? 'i' : '');
+ return '#' . $anchor . $pattern . '$#D' . (Helpers::IsWindows ? 'i' : '');
509
}
510
src/Utils/Helpers.php
@@ -14,6 +14,9 @@
14
15
class Helpers
16
{
17
+ public const IsWindows = PHP_OS_FAMILY === 'Windows';
18
+
19
20
/**
21
* Executes a callback and returns the captured output as a string.
22
*/
0 commit comments