* [misc] compatibility with PHP8.4

This commit is contained in:
zhujinyong
2025-07-11 09:46:37 +08:00
committed by wangzemei
parent a2bf2be540
commit 05aa80866d
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -109,7 +109,7 @@ class props extends \zin\utils\dataset
if($value) $this->setVal($name, $value);
}
public function bindEvent(string|array $name, ?string|array $handler = null)
public function bindEvent(string|array $name, mixed $handler = null)
{
if(is_array($name))
{
+1 -1
View File
@@ -25,7 +25,7 @@ class set extends setting implements iDirective
* @param array|object|string $data Properties list array.
* @param mixed $value Property value.
*/
public function __construct(?array|object|string $data = null, mixed $value = null)
public function __construct(mixed $data = null, mixed $value = null)
{
parent::__construct($data, $value);
+1 -1
View File
@@ -136,7 +136,7 @@ class setting extends \zin\utils\dataset
* @param mixed $value - Setting value.
* @return setting
*/
function setting(?array|string $setting = null, mixed $value = null): setting
function setting(mixed $setting = null, mixed $value = null): setting
{
return new setting($setting, $value);
}
+1 -1
View File
@@ -26,7 +26,7 @@ class field extends setting
public mixed $default;
public function __construct(?string|object|array $nameOrProps = null, ?fieldList $fieldList = null, ?field $parent = null)
public function __construct(mixed $nameOrProps = null, ?fieldList $fieldList = null, ?field $parent = null)
{
$this->fieldList = $fieldList;
$this->parent = $parent;