mirror of
https://github.com/archtechx/enums.git
synced 2025-12-12 14:14:05 +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
|
||||
{
|
||||
foreach ($enums as $item) {
|
||||
if ($item === $this) {
|
||||
if ($this->is($item)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue