From 3ad088663fae94b7bcc776462bfedd61e56d828e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Mon, 6 Jan 2025 00:21:04 +0100 Subject: [PATCH] Fixed phpstan issue --- src/Controller/LabelController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Controller/LabelController.php b/src/Controller/LabelController.php index b3d9e62f..4950628b 100644 --- a/src/Controller/LabelController.php +++ b/src/Controller/LabelController.php @@ -111,7 +111,7 @@ class LabelController extends AbstractController if (($form->isSubmitted() && $form->isValid()) || ($generate && !$form->isSubmitted() && $profile instanceof LabelProfile)) { //Check if the label should be saved as profile - if ($form->get('save_profile')->isClicked() && $this->isGranted('@labels.create_profiles')) { + if ($form->get('save_profile')->isClicked() && $this->isGranted('@labels.create_profiles')) { //@phpstan-ignore-line Phpstan does not recognize the isClicked method //Retrieve the profile name from the form $new_name = $form->get('save_profile_name')->getData(); //ensure that the name is not empty