Skip to content

Commit

Permalink
Fix deprecated usage of "implode"
Browse files Browse the repository at this point in the history
  • Loading branch information
nekudo committed Jul 17, 2021
1 parent 316a99a commit 450ec80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
exit('Script can only be run in cli mode.' . PHP_EOL);
}
if (empty($argv[1])) {
exit(sprintf('No action given. Valid actions are: %s', implode($validActions, '|')) . PHP_EOL);
exit(sprintf('No action given. Valid actions are: %s', implode('|', $validActions)) . PHP_EOL);
}

try {
Expand Down Expand Up @@ -122,7 +122,7 @@
echo PHP_EOL;
break;
default:
exit(sprintf('Invalid action. Valid actions are: %s', implode($validActions, '|')) . PHP_EOL);
exit(sprintf('Invalid action. Valid actions are: %s', implode('|', $validActions)) . PHP_EOL);
}
} catch (\Exception $e) {
echo 'Error: ' . $e->getMessage() . PHP_EOL;
Expand Down

0 comments on commit 450ec80

Please sign in to comment.