public static function loadFromScript(string $filename): ?Config
    {
        if (
            (function_exists('opcache_is_script_cached') && opcache_is_script_cached($filename)) ||
            file_exists($filename)
        ) {
            return include $filename ?: null;
        }

        return null;
    }
public static function loadFromScript(string $filename): ?Config
    {
        if (
            (function_exists('opcache_is_script_cached') && opcache_is_script_cached($filename)) ||
            file_exists($filename)
        ) {
            return include $filename ?: null;
        }

        return null;
    }
public static function loadFromScript ( string $ filename ) : ? Config { if ( ( function_exists ( 'opcache_is_script_cached' ) && opcache_is_script_cached ( $ filename ) ) || file_exists ( $ filename ) ) { return include $ filename ? : null ; } return null ; }
Load configuration from PHP script.

@param string $filename
@return Config|null
Load configuration from PHP script .