fix php 8.1 Deprecated: htmlspecialchars(): Passing null to parameter #1 (#1570)

* Fix multiple calls returning the same object

* fix: strtolower() passing null to parameter #1 ($string) of type string is deprecated

* fix: php 8.1 Deprecated: htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated
This commit is contained in:
Ryan Lieu 2023-05-15 18:30:44 +08:00 committed by GitHub
parent 83d4d020ed
commit c9de1b3b01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -217,7 +217,7 @@ abstract class Element extends Layout
public function value($value): Element
{
$this->value = $value;
$this->inputValue($value);
$this->inputValue($value ?? '');
return $this;
}