Skip to content

Commit 6a8bd0e

Browse files
committed
Leverage str_ends_with
added the php80 polyfill to requirements when necessary
1 parent 899c8b7 commit 6a8bd0e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

DebugClassLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ public function __construct(callable $classLoader)
205205
if (false === $test || false === $i) {
206206
// filesystem is case sensitive
207207
self::$caseCheck = 0;
208-
} elseif (substr($test, -\strlen($file)) === $file) {
208+
} elseif (str_ends_with($test, $file)) {
209209
// filesystem is case insensitive and realpath() normalizes the case of characters
210210
self::$caseCheck = 1;
211211
} elseif (false !== stripos(\PHP_OS, 'darwin')) {

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"php": ">=7.1.3",
2020
"psr/log": "^1|^2|^3",
2121
"symfony/debug": "^4.4.5",
22-
"symfony/polyfill-php80": "^1.15",
22+
"symfony/polyfill-php80": "^1.16",
2323
"symfony/var-dumper": "^4.4|^5.0"
2424
},
2525
"require-dev": {

0 commit comments

Comments
 (0)