diff --git a/src/Input/Command.php b/src/Input/Command.php index e388062..66d86f8 100644 --- a/src/Input/Command.php +++ b/src/Input/Command.php @@ -413,7 +413,7 @@ public function action(callable $action = null) return $this->_action; } - $this->_action = $action; + $this->_action = $action ? \Closure::bind($action, $this) : null; return $this; }