diff --git a/src/Routing/Router.php b/src/Routing/Router.php index 4bf06a50..8bce0c36 100644 --- a/src/Routing/Router.php +++ b/src/Routing/Router.php @@ -1234,7 +1234,7 @@ public function hasMacro($name) */ public function __call($method, $parameters) { - if (isset($this->macros[$name])) { + if (isset($this->macros[$method])) { $callback = $this->macros[$method]; return call_user_func_array($callback, $parameters);