public static function register(string $filterId = self::FILTER_IDENTIFIER): void
    {
        if (!empty(self::$filterId)) {
            throw new RuntimeException('Stream filter already registered');
        }

        $result = stream_filter_register($filterId, __CLASS__);
        if ($result === false) {
            throw new RuntimeException('Stream filter was not registered');
        }
        self::$filterId = $filterId;
    }
public static function register(string $filterId = self::FILTER_IDENTIFIER): void
    {
        if (!empty(self::$filterId)) {
            throw new RuntimeException('Stream filter already registered');
        }

        $result = stream_filter_register($filterId, __CLASS__);
        if ($result === false) {
            throw new RuntimeException('Stream filter was not registered');
        }
        self::$filterId = $filterId;
    }
public static function register ( string $ filterId = self :: FILTER_IDENTIFIER ) : void { if ( ! empty ( self :: $ filterId ) ) { throw new RuntimeException ( 'Stream filter already registered' ) ; } $ result = stream_filter_register ( $ filterId , __CLASS__ ) ; if ( $ result === false ) { throw new RuntimeException ( 'Stream filter was not registered' ) ; } self :: $ filterId = $ filterId ; }
Register current loader as stream filter in PHP

@throws RuntimeException If registration was failed
Register current loader as stream filter in PHP