Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d1ca84c

Browse filesBrowse files
committed
Replace str_ends_with with substr to maintain compatibility
1 parent 75c649a commit d1ca84c
Copy full SHA for d1ca84c

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

‎src/Symfony/Component/Filesystem/Filesystem.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Filesystem/Filesystem.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ public function makePathRelative($endPath, $startPath)
479479

480480
$startPathArr = $splitPath($startPath);
481481
$endPathArr = $splitPath($endPath);
482-
$pathEnd = str_ends_with($endPath, '/') ? '/' : '';
482+
$pathEnd = substr($endPath, -1) === '/' ? '/' : '';
483483

484484
if ($endDriveLetter && $startDriveLetter && $endDriveLetter != $startDriveLetter) {
485485
// End path is on another drive, so no relative path exists

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.