Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / vendor / consolidation / site-alias / src / Util / FsUtils.php
1 <?php
2 namespace Consolidation\SiteAlias\Util;
3
4 use Symfony\Component\Filesystem\Filesystem;
5 use Webmozart\PathUtil\Path;
6
7 class FsUtils
8 {
9     /**
10      * Returns canonicalized absolute pathname.
11      *
12      * The difference between this and PHP's realpath() is that this will
13      * return the original path even if it doesn't exist.
14      *
15      * @param string $path
16      *   The path being checked.
17      *
18      * @return string
19      *   The canonicalized absolute pathname.
20      */
21     public static function realpath($path)
22     {
23         $realpath = realpath($path);
24         return $realpath ?: $path;
25     }
26 }