From 450ec807cb532e49b7f5d7178eb9df9bb28a2402 Mon Sep 17 00:00:00 2001 From: Simon Samtleben Date: Sat, 17 Jul 2021 10:03:55 +0200 Subject: [PATCH] Fix deprecated usage of "implode" --- cli/app.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/app.php b/cli/app.php index 19e3fce..49df458 100644 --- a/cli/app.php +++ b/cli/app.php @@ -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 { @@ -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;