Skip to content

Commit

Permalink
API Make parameter non-optional for PHP 8.4
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Dec 1, 2024
1 parent b690f59 commit 86c1aa2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Forms/DataObjectVersionFormFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 86c1aa2

Please sign in to comment.