Skip to content

Commit 11e7260

Browse files
javiereguiluznicolas-grekas
authored andcommitted
Use PHP_OS_FAMILY if possible
1 parent 98de61e commit 11e7260

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DebugClassLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ public function __construct(callable $classLoader)
208208
} elseif (substr($test, -\strlen($file)) === $file) {
209209
// filesystem is case insensitive and realpath() normalizes the case of characters
210210
self::$caseCheck = 1;
211-
} elseif (false !== stripos(\PHP_OS, 'darwin')) {
211+
} elseif ('Darwin' === \PHP_OS_FAMILY) {
212212
// on MacOSX, HFS+ is case insensitive but realpath() doesn't normalize the case of characters
213213
self::$caseCheck = 2;
214214
} else {

0 commit comments

Comments
 (0)