Skip to content

Commit

Permalink
API Explicity mark nullable parameters for PHP 8.4
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Nov 28, 2024
1 parent 8db155c commit c20bb2b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Forms/EditFormFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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);

Expand All @@ -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);
Expand Down

0 comments on commit c20bb2b

Please sign in to comment.