private function findFileWithKnownSuffix(string $pathWithoutSuffix): ?string
    {
        foreach ($this->fileSuffixes as $fileSuffix) {
            if (is_file($filePath = $pathWithoutSuffix . $fileSuffix)) {
                return $filePath;
            }
        }

        return null;
    }
private function findFileWithKnownSuffix(string $pathWithoutSuffix): ?string
    {
        foreach ($this->fileSuffixes as $fileSuffix) {
            if (is_file($filePath = $pathWithoutSuffix . $fileSuffix)) {
                return $filePath;
            }
        }

        return null;
    }
private function findFileWithKnownSuffix ( string $ pathWithoutSuffix ) : ? string { foreach ( $ this -> fileSuffixes as $ fileSuffix ) { if ( is_file ( $ filePath = $ pathWithoutSuffix . $ fileSuffix ) ) { return $ filePath ; } } return null ; }
Try locating the given path using all registered suffixes

Returns NULL on failure.
Try locating the given path using all registered suffixes