Remove unnecessary nullability

Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
This commit is contained in:
Kamil Tekiela 2024-12-29 14:54:01 +00:00
parent 04df41aa32
commit 0f8a3c7e72

View File

@ -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,