You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@mathiasverraes - Wondering what your thoughts were on this one? I'd be happy to contribute a PR for this feature and update tests too. Doing a quick implementation of things while it can work, one short coming I found is mapping a custom object to a float becomes harder.
Currently floatval can be used with map, but with a custom object that callback breaks. Seems like a short coming of PHP as it doesn't provide a Floatable contract similar to Stringable. Certainly not something I've considered until now, but it would be pretty cool if PHP added similar *able interfaces for other primitives. Seems like a neat half-way between not having them (now) and past suggestions for class like primitives that failed.
Anyway, like I said I'm really interested in supporting parisca and helping out here. So I'm curious if you have some more input here. This would be the gist of the concept I have so far:
No description provided.
The text was updated successfully, but these errors were encountered: