mirror of
https://github.com/archtechx/enums.git
synced 2025-12-12 13:54:04 +00:00
Dropped unnecessary array_pop()
This commit is contained in:
parent
ad1e07cf39
commit
e98222a513
1 changed files with 1 additions and 1 deletions
|
|
@ -50,6 +50,6 @@ trait From
|
||||||
fn ($c) => $c->name === $case
|
fn ($c) => $c->name === $case
|
||||||
);
|
);
|
||||||
|
|
||||||
return array_pop($cases) ?? null;
|
return array_values($cases)[0] ?? null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue