From 65e64083b71a1cf031867d8e49eb990d7fdabc98 Mon Sep 17 00:00:00 2001 From: Noah Dietz Date: Mon, 1 May 2023 10:24:15 -0700 Subject: [PATCH] Update src/Ast/AST.php Co-authored-by: Brent Shaffer --- src/Ast/AST.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)))