Skip to content

Commit

Permalink
fix php 8.1 Deprecated: htmlspecialchars(): Passing null to parameter #1
Browse files Browse the repository at this point in the history
 (#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
  • Loading branch information
benzBrake committed May 15, 2023
1 parent 83d4d02 commit c9de1b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion var/Typecho/Widget/Helper/Form/Element.php
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ abstract public function input(?string $name = null, ?array $options = null): ?L
public function value($value): Element
{
$this->value = $value;
$this->inputValue($value);
$this->inputValue($value ?? '');
return $this;
}

Expand Down

0 comments on commit c9de1b3

Please sign in to comment.