Skip to content

Commit

Permalink
feat(cmd.action): bind to $this
Browse files Browse the repository at this point in the history
  • Loading branch information
adhocore committed Jan 3, 2020
1 parent 2bf08c5 commit c479995
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Input/Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit c479995

Please sign in to comment.