Skip to content

Commit

Permalink
Change null coalesce to default value
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Apr 13, 2024
1 parent e8c2435 commit 33a2862
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@ public function writeln(string $message): void
*
* @throws \Hyde\Framework\Features\BuildTasks\BuildTaskSkippedException
*/
public function skip(string $reason = null): void
public function skip(string $reason = 'Task was skipped'): void
{
throw new BuildTaskSkippedException($reason ?? 'Task was skipped');
throw new BuildTaskSkippedException($reason);
}

/** Write a fluent message to the output that the task created the specified file. */
Expand Down

0 comments on commit 33a2862

Please sign in to comment.