Skip to content

Commit

Permalink
Improve autoconversion for containers
Browse files Browse the repository at this point in the history
  • Loading branch information
nyamsprod committed Dec 6, 2024
1 parent a277eab commit 752c944
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/InnerList.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,11 @@ private function filterMember(mixed $member): Item
return $member;
}

if (!$member instanceof Item) {
return Item::new($member);
if ($member instanceof Item) {
return $member;
}

return $member;
return Item::new($member);
}

/**
Expand Down

0 comments on commit 752c944

Please sign in to comment.