From e7dbac9e5833dc7059f104dd469f0be04709b1a7 Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Sun, 1 Dec 2024 19:39:59 +1300 Subject: [PATCH] API Make parameter non-optional for PHP 8.4 --- src/Forms/DataObjectVersionFormFactory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Forms/DataObjectVersionFormFactory.php b/src/Forms/DataObjectVersionFormFactory.php index 0790335..26f9fdb 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 */