src/Base.php
public function parsePath(?string $path = null): ?string
    {
        if ($path === null) {
            return null;
        }
        $path = \str_replace('%DOCUMENT_ROOT%', $this->documentRoot, $path);
        $path = \str_replace(['\\', '/'], DIRECTORY_SEPARATOR, $path);
        return $path;
    }
public function parsePath(?string $path = null): ?string
    {
        if ($path === null) {
            return null;
        }
        $path = \str_replace('%DOCUMENT_ROOT%', $this->documentRoot, $path);
        $path = \str_replace(['\\', '/'], DIRECTORY_SEPARATOR, $path);
        return $path;
    }
public function parsePath ( ? string $ path = null ) : ? string { if ( $ path === null ) { return null ; } $ path = \ str_replace ( '%DOCUMENT_ROOT%' , $ this -> documentRoot , $ path ) ; $ path = \ str_replace ( [ '\\' , '/' ] , DIRECTORY_SEPARATOR , $ path ) ; return $ path ; }
Replaces predefined constants in path string to document and framework root

@param null|string $path
@return null|string
Replaces predefined constants in path string to document and framework root