From 86c1aa2c82dcc1e75324ee31bc764cc70d69552b Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Sun, 1 Dec 2024 20:30:48 +1300 Subject: [PATCH] API Make parameter non-optional for PHP 8.4 --- src/Forms/DataObjectVersionFormFactory.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Forms/DataObjectVersionFormFactory.php b/src/Forms/DataObjectVersionFormFactory.php index 0790335..e424c96 100644 --- a/src/Forms/DataObjectVersionFormFactory.php +++ b/src/Forms/DataObjectVersionFormFactory.php @@ -91,7 +91,7 @@ public function isReadonlyFormType(array $context) return in_array($this->getFormType($context), $this->config()->get('readonly_types') ?? []); } - protected function getFormFields(?RequestHandler $controller = null, $name, $context = []) + protected function getFormFields(?RequestHandler $controller, $name, $context = []) { $record = $context['Record']; /** @var FieldList $fields */ @@ -157,7 +157,7 @@ protected function removeSelectedRightTitles(FieldList $fields) } } - protected function getFormActions(?RequestHandler $controller = null, $formName, $context = []) + protected function getFormActions(?RequestHandler $controller, $formName, $context = []) { $actions = FieldList::create(); $this->invokeWithExtensions('updateFormActions', $actions, $controller, $formName, $context);