From b9deb3e15748706a1433bd39c692d0d9ee4c9301 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jib=C3=A9=20Barth?= Date: Wed, 11 Aug 2021 11:31:54 +0200 Subject: [PATCH] Fix correct signature of implode --- src/Controller/Helper/FormErrorsFlashHelper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Controller/Helper/FormErrorsFlashHelper.php b/src/Controller/Helper/FormErrorsFlashHelper.php index b6929cced..4d7ee56d2 100644 --- a/src/Controller/Helper/FormErrorsFlashHelper.php +++ b/src/Controller/Helper/FormErrorsFlashHelper.php @@ -42,7 +42,7 @@ public function addFlashErrors(FormInterface $form): void $errors[] = $error->getMessage(); } - $message = $this->translator->trans('bitbag_sylius_cms_plugin.ui.form_was_submitted_with_errors') . ' ' . rtrim(implode($errors, ' ')); + $message = $this->translator->trans('bitbag_sylius_cms_plugin.ui.form_was_submitted_with_errors') . ' ' . rtrim(implode(' ', $errors)); $this->flashBag->set('error', $message); }