Skip to content

Commit 8ea8a08

Browse files
authored
onContentPrepareForm should return void instead of boolean (#44817)
1 parent 6a51830 commit 8ea8a08

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

plugins/content/confirmconsent/src/Extension/ConfirmConsent.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public static function getSubscribedEvents(): array
5656
*
5757
* @param PrepareFormEvent $event The event instance.
5858
*
59-
* @return boolean
59+
* @return void
6060
*
6161
* @since 3.9.0
6262
*/
@@ -65,7 +65,7 @@ public function onContentPrepareForm(PrepareFormEvent $event)
6565
$form = $event->getForm();
6666

6767
if ($this->getApplication()->isClient('administrator') || !\in_array($form->getName(), $this->supportedContext)) {
68-
return true;
68+
return;
6969
}
7070

7171
$this->loadLanguage();
@@ -95,7 +95,5 @@ public function onContentPrepareForm(PrepareFormEvent $event)
9595
</field>
9696
</fieldset>
9797
</form>');
98-
99-
return true;
10098
}
10199
}

0 commit comments

Comments
 (0)