From cbe01ff18c1b1e542681df5efeb0f767156d2297 Mon Sep 17 00:00:00 2001 From: Mark <14284867+xHeaven@users.noreply.github.com> Date: Sun, 29 Dec 2024 08:56:50 +0100 Subject: [PATCH] Use is() for comparison in in() --- src/Comparable.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Comparable.php b/src/Comparable.php index 31647c6..9d6c847 100644 --- a/src/Comparable.php +++ b/src/Comparable.php @@ -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; } }