public static function fixPath($path) {
        // fix directory separators
        $fixed = \mb_ereg_replace('[\\\\\\/]+', DIRECTORY_SEPARATOR, $path);

        return \file_exists($fixed) ? \realpath($fixed) : $fixed;
    }
public static function fixPath($path) {
        // fix directory separators
        $fixed = \mb_ereg_replace('[\\\\\\/]+', DIRECTORY_SEPARATOR, $path);

        return \file_exists($fixed) ? \realpath($fixed) : $fixed;
    }
@internal

Fix path to match runtime system requirements, for e.g. directory separator.

@param string $path Path to fix

@return string Fixed path