From bdd8de68ff2525010763effd484ebb7dc419879c 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 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; } }