From 0f8a3c7e72c36d78baa5e3e6fc4770fb2604af61 Mon Sep 17 00:00:00 2001 From: Kamil Tekiela Date: Sun, 29 Dec 2024 14:54:01 +0000 Subject: [PATCH] Remove unnecessary nullability Signed-off-by: Kamil Tekiela --- src/Config/FormDisplay.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Config/FormDisplay.php b/src/Config/FormDisplay.php index 874b2aecb8..feafec89ff 100644 --- a/src/Config/FormDisplay.php +++ b/src/Config/FormDisplay.php @@ -204,17 +204,17 @@ class FormDisplay /** * Outputs HTML for forms * - * @param bool $showButtons whether show submit and reset button - * @param string|null $formAction action attribute for the form - * @param mixed[]|null $hiddenFields array of form hidden fields (key: field + * @param bool $showButtons whether show submit and reset button + * @param string $formAction action attribute for the form + * @param mixed[] $hiddenFields array of form hidden fields (key: field * name) * * @return string HTML for forms */ public function getDisplay( bool $showButtons = true, - string|null $formAction = null, - array|null $hiddenFields = null, + string $formAction = '', + array $hiddenFields = [], ): string { $fieldValidators = []; $defaultValues = []; @@ -293,7 +293,7 @@ class FormDisplay return $this->formDisplayTemplate->display([ 'action' => $formAction, 'has_check_page_refresh' => self::$hasCheckPageRefresh, - 'hidden_fields' => (array) $hiddenFields, + 'hidden_fields' => $hiddenFields, 'tabs' => $tabs, 'forms' => $forms, 'show_buttons' => $showButtons,