Skip to content

Commit

Permalink
Rename helper method for conflicting method name
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Jan 30, 2023
1 parent c3e01c7 commit d1d695b
Showing 1 changed file with 2 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->withException($exception);
}

(new RebuildService($this->path))->execute();
Expand Down Expand Up @@ -102,7 +102,7 @@ public function validate(): void
*
* @return int Error code
*/
public function handleException(Exception $exception): int
public function withException(Exception $exception): int
{
$this->error('Something went wrong!');
$this->warn($exception->getMessage());
Expand Down

0 comments on commit d1d695b

Please sign in to comment.