Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
martenb opened this issue Feb 23, 2023 · 0 comments
Closed

Comments

@martenb
Copy link

martenb commented Feb 23, 2023

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

...

@martenb martenb changed the title SubmitButton without caption throws depracated error on render SubmitButton without caption throws depracated error on render on PHP 8.1 Feb 23, 2023
@dg dg closed this as completed in 4864154 Mar 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant