Skip to content

Commit

Permalink
Merge pull request #1111 from peter279k/apply_array_spread
Browse files Browse the repository at this point in the history
Replace the array_merge with spread array operator
  • Loading branch information
veewee authored Oct 3, 2023
2 parents da1d97b + 5ed71c5 commit 966bf77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Runner/Reporting/TaskResultsReporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public function report(TaskRunnerContext $context): void

// Always add content if we decided that an overwrite is not possible!
if (!$this->isOverwritePossible()) {
$this->outputSection->writeln(array_merge($message, ['']));
$this->outputSection->writeln([...$message, '']);
return;
}

Expand Down

0 comments on commit 966bf77

Please sign in to comment.