Skip to content

Commit

Permalink
Update src/Ast/AST.php
Browse files Browse the repository at this point in the history
Co-authored-by: Brent Shaffer <betterbrent@google.com>
  • Loading branch information
noahdietz and bshaffer committed May 1, 2023
1 parent 221359b commit 65e6408
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Ast/AST.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)))
Expand Down

0 comments on commit 65e6408

Please sign in to comment.