* [misc] compatibility with PHP8.4
This commit is contained in:
@@ -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))
|
||||
{
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user