Skip to content

Commit

Permalink
NGSTACK-789 change typehint
Browse files Browse the repository at this point in the history
  • Loading branch information
amalija-ramljak committed Mar 20, 2024
1 parent ff9c981 commit 44bfeed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Action/Action.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ abstract class Action implements ActionInterface
{
protected const ERROR_MESSAGE = "I'm sorry, Dave. I'm afraid I can't do that. Please check your commit for errors";

public function execute(Config $config, IO $io, Repository $repository, Config\Action $action): void
public function execute(Config $config, IO $io, Repository $repository, ActionConfig $action): void
{
if (!$this->isEnabled($action)) {
return;
Expand All @@ -27,7 +27,7 @@ public function execute(Config $config, IO $io, Repository $repository, Config\A
$this->doExecute($config, $io, $repository, $action);
}

abstract protected function doExecute(Config $config, IO $io, Repository $repository, Config\Action $action): void;
abstract protected function doExecute(Config $config, IO $io, Repository $repository, ActionConfig $action): void;

protected function throwError(ActionConfig $config, IO $io): void
{
Expand Down

0 comments on commit 44bfeed

Please sign in to comment.