Skip to content

Commit

Permalink
fix(suppport): allow instanciating ArrayHelper with null
Browse files Browse the repository at this point in the history
  • Loading branch information
innocenzi committed Nov 13, 2024
1 parent 322eb1c commit fbb2ecf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Tempest/Support/src/ArrayHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}
Expand Down

0 comments on commit fbb2ecf

Please # to comment.