src/Debug/FileStreamWrapper.php
public static function register($pathsExclude = array())
    {
        $result = \stream_wrapper_unregister(static::PROTOCOL);
        if ($result === false) {
            throw new \UnexpectedValueException('Failed to unregister');
        }
        if ($pathsExclude) {
            self::$pathsExclude = $pathsExclude;
        }
        \stream_wrapper_register(static::PROTOCOL, \get_called_class());
        /*
            Disable OPcache
                a) want to make sure we modify required files
                b) don't want to cache modified files
        */
        \ini_set('opcache.enable', 0);
    }
public static function register($pathsExclude = array())
    {
        $result = \stream_wrapper_unregister(static::PROTOCOL);
        if ($result === false) {
            throw new \UnexpectedValueException('Failed to unregister');
        }
        if ($pathsExclude) {
            self::$pathsExclude = $pathsExclude;
        }
        \stream_wrapper_register(static::PROTOCOL, \get_called_class());
        /*
            Disable OPcache
                a) want to make sure we modify required files
                b) don't want to cache modified files
        */
        \ini_set('opcache.enable', 0);
    }
Register this stream wrapper

@param array $pathsExclude paths/directories to exclude

@return void

@throws \UnexpectedValueException