8000 Leverage str_ends_with · symfony/debug@d2bbd5f · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Dec 9, 2023. It is now read-only.

Commit d2bbd5f

Browse files
committed
Leverage str_ends_with
added the php80 polyfill to requirements when necessary
1 parent 26c72fc commit d2bbd5f

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
@@ -61,7 +61,7 @@ public function __construct(callable $classLoader)
6161
if (false === $test || false === $i) {
6262
// filesystem is case sensitive
6363
self::$caseCheck = 0;
64-
} elseif (substr($test, -\strlen($file)) === $file) {
64+
} elseif (str_ends_with($test, $file)) {
6565
// filesystem is case insensitive and realpath() normalizes the case of characters
6666
self::$caseCheck = 1;
6767
} elseif (false !== stripos(\PHP_OS, 'darwin')) {

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"require": {
1919
"php": ">=7.1.3",
2020
"psr/log": "^1|^2|^3",
21-
"symfony/polyfill-php80": "^1.15"
21+
"symfony/polyfill-php80": "^1.16"
2222
},
2323
"conflict": {
2424
"symfony/http-kernel": "<3.4"

0 commit comments

Comments
 (0)
0