src/Container.php
public function removeAlias($alias) {
        $alias = $this->normalizeID($alias);

        if (!empty($this->rules[$alias]['aliasOf']) && $this->rules[$alias]['aliasOf'] !== $this->currentRuleName) {
            trigger_error("Alias '$alias' does not point to the current rule.", E_USER_NOTICE);
        }

        unset($this->rules[$alias]['aliasOf']);
        return $this;
    }
public function removeAlias($alias) {
        $alias = $this->normalizeID($alias);

        if (!empty($this->rules[$alias]['aliasOf']) && $this->rules[$alias]['aliasOf'] !== $this->currentRuleName) {
            trigger_error("Alias '$alias' does not point to the current rule.", E_USER_NOTICE);
        }

        unset($this->rules[$alias]['aliasOf']);
        return $this;
    }
public function removeAlias ( $ alias ) { $ alias = $ this -> normalizeID ( $ alias ) ; if ( ! empty ( $ this -> rules [ $ alias ] [ 'aliasOf' ] ) && $ this -> rules [ $ alias ] [ 'aliasOf' ] !== $ this -> currentRuleName ) { trigger_error ( "Alias '$alias' does not point to the current rule." , E_USER_NOTICE ) ; } unset ( $ this -> rules [ $ alias ] [ 'aliasOf' ] ) ; return $ this ; }
Remove an alias of the current rule.

If {@link Container::removeAlias()} is called with an alias that references a different rule then an **E_USER_NOTICE**
level error is raised, but the alias is still removed.

@param string $alias The alias to remove.
@return $this
Remove an alias of the current rule .