src/StreamWrapper.php
public static function release($file)
    {
        if ($file instanceof StreamInterface) {
            $file = 'spiral://' . spl_object_hash($file);
        }

        unset(self::$uris[$file]);
    }
public static function release($file)
    {
        if ($file instanceof StreamInterface) {
            $file = 'spiral://' . spl_object_hash($file);
        }

        unset(self::$uris[$file]);
    }
Free uri dedicated to specified StreamInterface. Method is useful for long living
applications. You must close resource by yourself!

@param string|StreamInterface $file String uri or StreamInterface.