mirror of
https://github.com/archtechx/enums.git
synced 2025-12-12 22:54:04 +00:00
Use is() for comparison in in()
This commit is contained in:
parent
06b17354af
commit
bdd8de68ff
1 changed files with 1 additions and 1 deletions
|
|
@ -19,7 +19,7 @@ trait Comparable
|
||||||
public function in(iterable $enums): bool
|
public function in(iterable $enums): bool
|
||||||
{
|
{
|
||||||
foreach ($enums as $item) {
|
foreach ($enums as $item) {
|
||||||
if ($item === $this) {
|
if ($this->is($item)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue