Better support for Enums in Collection methods #52611
Unanswered
ProgrammerZ
asked this question in
Ideas
Replies: 1 comment
-
It would be nice to have something like this: interface Diffable
{
public function diff(self $a, self $b): bool;
} or interface Diffable
{
/**
* Diffs `$this` with `$other`
*/
public function diff(self $other): bool;
} or interface Diffable
{
/**
* Diff will be called on the result of
* $this->toDiffable()` instead of `$this`
*/
public function toDiffable();
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
It would greatly improve if we had better support for Enums in collection methods, so we don't have to do something like this when working with collection of Enums.
Beta Was this translation helpful? Give feedback.
All reactions