From 6699db201efb2a9b6eaaeddaff3840dc7271f7ee Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Thu, 28 Nov 2024 14:01:56 +1300 Subject: [PATCH] API Explicity mark nullable parameters for PHP 8.4 --- src/Forms/EditFormFactory.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Forms/EditFormFactory.php b/src/Forms/EditFormFactory.php index 8455d94b..85bb883b 100644 --- a/src/Forms/EditFormFactory.php +++ b/src/Forms/EditFormFactory.php @@ -29,7 +29,7 @@ class EditFormFactory extends DefaultFormFactory */ const FIELD_NAMESPACE_TEMPLATE = 'PageElements_%d_%s'; - public function getForm(RequestHandler $controller = null, $name = EditFormFactory::DEFAULT_NAME, $context = []) + public function getForm(?RequestHandler $controller = null, $name = EditFormFactory::DEFAULT_NAME, $context = []) { $form = parent::getForm($controller, $name, $context); @@ -44,7 +44,7 @@ public function getForm(RequestHandler $controller = null, $name = EditFormFacto return $form; } - protected function getFormFields(RequestHandler $controller = null, $name, $context = []) + protected function getFormFields(?RequestHandler $controller = null, $name, $context = []) { $fields = parent::getFormFields($controller, $name, $context); @@ -58,7 +58,7 @@ protected function getFormFields(RequestHandler $controller = null, $name, $cont return $fields; } - protected function getFormValidator(RequestHandler $controller = null, $name, $context = []) + protected function getFormValidator(?RequestHandler $controller = null, $name, $context = []) { /** @var CompositeValidator $compositeValidator */ $compositeValidator = parent::getFormValidator($controller, $name, $context);