From 1ca75a72aadb2acba92298d84ea8f6baf5baf543 Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Sun, 1 Dec 2024 19:38:45 +1300 Subject: [PATCH] API Make parameter non-optional for PHP 8.4 --- src/Forms/EditFormFactory.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Forms/EditFormFactory.php b/src/Forms/EditFormFactory.php index 85bb883b..328ad7b7 100644 --- a/src/Forms/EditFormFactory.php +++ b/src/Forms/EditFormFactory.php @@ -44,7 +44,7 @@ public function getForm(?RequestHandler $controller = null, $name = EditFormFact return $form; } - protected function getFormFields(?RequestHandler $controller = null, $name, $context = []) + protected function getFormFields(?RequestHandler $controller, $name, $context = []) { $fields = parent::getFormFields($controller, $name, $context); @@ -58,7 +58,7 @@ protected function getFormFields(?RequestHandler $controller = null, $name, $con return $fields; } - protected function getFormValidator(?RequestHandler $controller = null, $name, $context = []) + protected function getFormValidator(?RequestHandler $controller, $name, $context = []) { /** @var CompositeValidator $compositeValidator */ $compositeValidator = parent::getFormValidator($controller, $name, $context);