Skip to content

Commit 3ad0886

Browse files
committed
Fixed phpstan issue
1 parent a29e87e commit 3ad0886

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Controller/LabelController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public function generator(Request $request, ?LabelProfile $profile = null): Resp
111111
if (($form->isSubmitted() && $form->isValid()) || ($generate && !$form->isSubmitted() && $profile instanceof LabelProfile)) {
112112

113113
//Check if the label should be saved as profile
114-
if ($form->get('save_profile')->isClicked() && $this->isGranted('@labels.create_profiles')) {
114+
if ($form->get('save_profile')->isClicked() && $this->isGranted('@labels.create_profiles')) { //@phpstan-ignore-line Phpstan does not recognize the isClicked method
115115
//Retrieve the profile name from the form
116116
$new_name = $form->get('save_profile_name')->getData();
117117
//ensure that the name is not empty

0 commit comments

Comments
 (0)