Skip to content

SubmitButton without caption throws depracated error on render on PHP 8.1 #298

@martenb

Description

@martenb

Version: 3.1.10
PHP: 8.1

Bug Description

Error

htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated

Generated code

echo htmlspecialchars($ʟ_input->getCaption()) /* line 2 */;

Steps To Reproduce

$form = new Form();
$form->addSubmit('send');
{form form}
	<button n:name="send"/>
{/form}

Expected Behavior

...

Possible Solution

...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions