lib/Phpactor.php
public static function normalizePath(string $path): string
    {
        if (substr($path, 0, 1) == DIRECTORY_SEPARATOR) {
            return $path;
        }

        return getcwd().DIRECTORY_SEPARATOR.$path;
    }
public static function normalizePath(string $path): string
    {
        if (substr($path, 0, 1) == DIRECTORY_SEPARATOR) {
            return $path;
        }

        return getcwd().DIRECTORY_SEPARATOR.$path;
    }
public static function normalizePath ( string $ path ) : string { if ( substr ( $ path , 0 , 1 ) == DIRECTORY_SEPARATOR ) { return $ path ; } return getcwd ( ) . DIRECTORY_SEPARATOR . $ path ; }
If the path is relative we need to use the current working path
because otherwise it will be the script path, which is wrong in the
context of a PHAR.

@deprecated Use webmozart Path instead.

@param string $path

@return string
If the path is relative we need to use the current working path because otherwise it will be the script path which is wrong in the context of a PHAR .