Skip to content

Commit

Permalink
Use is() for comparison in in()
Browse files Browse the repository at this point in the history
  • Loading branch information
xHeaven committed Dec 29, 2024
1 parent afdffc6 commit cbe01ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Comparable.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function isNot(UnitEnum $enum): bool
public function in(iterable $enums): bool
{
foreach ($enums as $item) {
if ($item === $this) {
if ($this->is($item)) {
return true;
}
}
Expand Down

0 comments on commit cbe01ff

Please sign in to comment.