Merge pull request #9532 from mvorisek/patch-2

Fix for PHP 8.0 when symlink function is disabled
main
Jordi Boggiano 4 years ago committed by GitHub
commit adf7bebf21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -597,6 +597,10 @@ class Filesystem
*/ */
public function relativeSymlink($target, $link) public function relativeSymlink($target, $link)
{ {
if (!function_exists('symlink')) {
return false;
}
$cwd = getcwd(); $cwd = getcwd();
$relativePath = $this->findShortestPath($link, $target); $relativePath = $this->findShortestPath($link, $target);

Loading…
Cancel
Save