- Some more work done on documentation and fixed some code at PHP 8 level

This commit is contained in:
mcndave committed 2023-01-26 13:33:53 +00:00
1 parent 3986437800
commit f00c98b7ff
3 files changed
+122 -2

No files matched your search

+1 -1
View File
@@ -30,7 +30,7 @@ class UiInput extends UiElement implements Extension {
return "<?php echo ( new \\" . static::class . "() )->buildHtml($arguments) ?>";
}
public function buildHtml(string $name, /*? mixed */ $value = null, array $attributes = [], array $options = []) : string
public function buildHtml(string $name, mixed $value = null, array $attributes = [], array $options = []) : string
{
$this->name = $name;
+1 -1
View File
@@ -22,7 +22,7 @@ class UiSelect extends UiElement implements Extension {
return "<?php echo ( new \\" . static::class . "() )->buildHtml($arguments) ?>";
}
public function buildHtml(string $name, array $list, $value = null, array $attributes = [], bool $strictComparison = true) : string
public function buildHtml(string $name, array $list, mixed $value = null, array $attributes = [], bool $strictComparison = true) : string
{
if ($attributes['class'] ?? false) {
$attributes['class'] = implode(" ", array_merge((array) $attributes['class'], (array) $this->attributes['class']));