Compare commits

..

No commits in common. "cd3cb18665d30f320c1fcaca6be394f1f6aeba57" and "bd501bce867f823298ccc9670ad3c023fc0a2e2a" have entirely different histories.

2 changed files with 2 additions and 7 deletions

View File

@ -355,8 +355,7 @@ class UiElement implements \ArrayAccess, \Iterator, \JsonSerializable {
return count($this->childs);
}
public function jsonSerialize() : mixed
{
public function jsonSerialize() {
return [
'tag' => $this->tag,
'attr' => $this->attributes,
@ -365,7 +364,6 @@ class UiElement implements \ArrayAccess, \Iterator, \JsonSerializable {
];
}
#[\ReturnTypeWillChange]
public function offsetSet($offset, $value) {
if ( is_numeric($offset) ) {
return $this->selected[$offset] = $value;
@ -408,7 +406,6 @@ class UiElement implements \ArrayAccess, \Iterator, \JsonSerializable {
return key($this->childs);
}
#[\ReturnTypeWillChange]
public function next() : self
{
return next($this->childs);

View File

@ -22,9 +22,7 @@ class UiTextarea extends UiInput {
$this->echoRaw = true;
}
$raw = $this->echoRaw ? 'true' : 'false';
return "<?php echo ( new \\" . static::class . "() )->echoRaw($raw)->buildHtml($arguments) ?>";
return sprintf("<?php echo ( new \\" . static::class . "() )->echoRaw(%s)->buildHtml($arguments) ?>", $this->echoRaw ? 'true' : 'false');
}