diff --git a/src/Comparable.php b/src/Comparable.php index b118ed2..deca592 100644 --- a/src/Comparable.php +++ b/src/Comparable.php @@ -19,7 +19,7 @@ trait Comparable public function in(iterable $enums): bool { foreach ($enums as $item) { - if ($item === $this) { + if ($this->is($item)) { return true; } }