src/CodeGeneration/Filesystem/AbstractFilesystemItem.php
protected function createSplFileInfo(): \SplFileInfo
    {
        if (null !== $this->splFileInfo && $this->path === $this->splFileInfo->getRealPath()) {
            return $this->splFileInfo;
        }
        $this->splFileInfo = new \SplFileInfo($this->path);

        return $this->splFileInfo;
    }
protected function createSplFileInfo(): \SplFileInfo
    {
        if (null !== $this->splFileInfo && $this->path === $this->splFileInfo->getRealPath()) {
            return $this->splFileInfo;
        }
        $this->splFileInfo = new \SplFileInfo($this->path);

        return $this->splFileInfo;
    }
protected function createSplFileInfo ( ) : \ SplFileInfo { if ( null !== $ this -> splFileInfo && $ this -> path === $ this -> splFileInfo -> getRealPath ( ) ) { return $ this -> splFileInfo ; } $ this -> splFileInfo = new \ SplFileInfo ( $ this -> path ) ; return $ this -> splFileInfo ; }
Create an SplFileInfo, assuming the path already exists

@return \SplFileInfo
Create an SplFileInfo assuming the path already exists