Skip to content

Commit

Permalink
Bypass inheritance conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Jan 30, 2023
1 parent b561422 commit 5806fc5
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function handle(): int
try {
$this->validate();
} catch (Exception $exception) {
return $this->handleException($exception);
return $this->customHandleException($exception);
}

(new RebuildService($this->path))->execute();
Expand Down Expand Up @@ -100,9 +100,11 @@ public function validate(): void
/**
* Output the contents of an exception.
*
* @fixme Refactor to use new base command helpers
*
* @return int Error code
*/
public function handleException(Exception $exception): int
public function customHandleException(Exception $exception): int
{
$this->error('Something went wrong!');
$this->warn($exception->getMessage());
Expand Down

0 comments on commit 5806fc5

Please sign in to comment.