maxonfjvipon / elegant-elephant

Elegant object oriented php primitives library
MIT License
10 stars 1 forks source link

ArrMerged error: Only arrays and Traversables can be unpacked #5

Closed maxonfjvipon closed 2 years ago

maxonfjvipon commented 2 years ago

This test fails:

$arr = [1, 2, "hello", "world"];
$this->assertEquals(
    $arr,
    ArrMerged::ofArrayables(ArrayableOf::array($arr), ArrayableOf::array([]))->asArray()
);

Type Error: Only arrays and Traversables can be unpacked