src/Filterer.php
public static function setFilterAliases(array $aliases)
    {
        $originalAliases = self::$registeredFilterAliases;
        self::$registeredFilterAliases = [];
        try {
            foreach ($aliases as $alias => $callback) {
                self::registerAlias($alias, $callback);
            }
        } catch (Throwable $throwable) {
            self::$registeredFilterAliases = $originalAliases;
            throw $throwable;
        }
    }
public static function setFilterAliases(array $aliases)
    {
        $originalAliases = self::$registeredFilterAliases;
        self::$registeredFilterAliases = [];
        try {
            foreach ($aliases as $alias => $callback) {
                self::registerAlias($alias, $callback);
            }
        } catch (Throwable $throwable) {
            self::$registeredFilterAliases = $originalAliases;
            throw $throwable;
        }
    }
public static function setFilterAliases ( array $ aliases ) { $ originalAliases = self :: $ registeredFilterAliases ; self :: $ registeredFilterAliases = [ ] ; try { foreach ( $ aliases as $ alias => $ callback ) { self :: registerAlias ( $ alias , $ callback ) ; } } catch ( Throwable $ throwable ) { self :: $ registeredFilterAliases = $ originalAliases ; throw $ throwable ; } }
Set the filter aliases.

@param array $aliases array where keys are aliases and values pass is_callable().
@return void

@throws Exception Thrown if any of the given $aliases is not valid. @see registerAlias()
Set the filter aliases .