Skip to content

Commit

Permalink
Fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Smoren committed Mar 12, 2024
1 parent 92799b9 commit 83af196
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion src/Structs/Slice.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public static function toSlice($s): Slice
*/
public static function isSlice($s): bool
{
return ($s instanceof Slice) || static::isSliceString($s);
return ($s instanceof Slice) || static::isSliceString($s) || static::isSliceArray($s);
}

/**
Expand Down
3 changes: 0 additions & 3 deletions tests/unit/Structs/SliceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,6 @@ public function dataProviderForFalse(): array
[true],
[false],
[null],
[[]],
[[1, 2, 3]],
[[null]],
[new \ArrayObject([])],
[['a' => 1]],
];
Expand Down

0 comments on commit 83af196

Please sign in to comment.