From fbb2ecf27d0b16bfdda8a2160f223ef2060a78de Mon Sep 17 00:00:00 2001 From: Enzo Innocenzi Date: Thu, 7 Nov 2024 20:14:50 +0100 Subject: [PATCH] fix(suppport): allow instanciating `ArrayHelper` with `null` --- src/Tempest/Support/src/ArrayHelper.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Tempest/Support/src/ArrayHelper.php b/src/Tempest/Support/src/ArrayHelper.php index 855764436..8b0f44b3d 100644 --- a/src/Tempest/Support/src/ArrayHelper.php +++ b/src/Tempest/Support/src/ArrayHelper.php @@ -39,6 +39,8 @@ public function __construct( $this->array = $input; } elseif ($input instanceof self) { $this->array = $input->array; + } elseif ($input === null) { + $this->array = []; } else { $this->array = [$input]; }