1
0
Fork 0
mirror of https://github.com/archtechx/enums.git synced 2025-12-12 20:04:03 +00:00

Use is() for comparison in in()

This commit is contained in:
Mark 2024-12-29 08:56:50 +01:00
parent 06b17354af
commit bdd8de68ff
No known key found for this signature in database
GPG key ID: 79CFF7869BD39873

View file

@ -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;
}
}