Skip to content

Commit d1d695b

Browse files
committed
Rename helper method for conflicting method name
1 parent c3e01c7 commit d1d695b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/framework/src/Console/Commands/RebuildStaticSiteCommand.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function handle(): int
4747
try {
4848
$this->validate();
4949
} catch (Exception $exception) {
50-
return $this->handleException($exception);
50+
return $this->withException($exception);
5151
}
5252

5353
(new RebuildService($this->path))->execute();
@@ -102,7 +102,7 @@ public function validate(): void
102102
*
103103
* @return int Error code
104104
*/
105-
public function handleException(Exception $exception): int
105+
public function withException(Exception $exception): int
106106
{
107107
$this->error('Something went wrong!');
108108
$this->warn($exception->getMessage());

0 commit comments

Comments
 (0)