update patch 1
This commit is contained in:
+1
-1
@@ -360,7 +360,7 @@ class RouteCollection implements \IteratorAggregate, \Countable
|
||||
public function addAlias(string $name, string $alias): Alias
|
||||
{
|
||||
if ($name === $alias) {
|
||||
throw new InvalidArgumentException(sprintf('Route alias "%s" can not reference itself.', $name));
|
||||
throw new InvalidArgumentException(\sprintf('Route alias "%s" can not reference itself.', $name));
|
||||
}
|
||||
|
||||
unset($this->routes[$name], $this->priorities[$name]);
|
||||
|
||||
Reference in New Issue
Block a user