From a46fd5fc9f9439190dcc3fdd524e6451e4a4e5ef Mon Sep 17 00:00:00 2001 From: Simounet Date: Tue, 26 Sep 2023 18:02:46 +0200 Subject: [PATCH] Fix deprecated null parameter passed to explode() --- src/Wallabag/CoreBundle/Controller/TagController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Wallabag/CoreBundle/Controller/TagController.php b/src/Wallabag/CoreBundle/Controller/TagController.php index 6e147df98..d0e5a5aa6 100644 --- a/src/Wallabag/CoreBundle/Controller/TagController.php +++ b/src/Wallabag/CoreBundle/Controller/TagController.php @@ -45,7 +45,7 @@ class TagController extends AbstractController $form = $this->createForm(NewTagType::class, new Tag()); $form->handleRequest($request); - $tags = $form->get('label')->getData(); + $tags = $form->get('label')->getData() ?? ''; $tagsExploded = explode(',', $tags); // avoid too much tag to be added