diff --git a/src/Ast/AST.php b/src/Ast/AST.php index 40625f0b7..e603c63d6 100644 --- a/src/Ast/AST.php +++ b/src/Ast/AST.php @@ -388,7 +388,7 @@ public function toCode(): string * * @return Expression */ - public static function array($data, $oneLine = false): Expression + public static function array(mixed $data, bool $oneLine = false): Expression { if (is_array($data)) { $keyValues = Vector::new(array_map(fn ($v, $k) => [$k, $v], $data, array_keys($data)))