[13.x] Add Carbon clamp method#59837
Conversation
|
Thanks for submitting a PR! Note that draft PRs are not reviewed. If you would like a review, please mark your pull request as ready for review in the GitHub user interface. Pull requests that are abandoned in draft may be closed due to inactivity. |
|
Just ran into this and was really surprised to find this, mostly due to the fact that this aims to add functionality that will be available in PHP natively (see also https://wiki.php.net/rfc/clamp_v2 and #59858) and can be leveraged here with a polyfill. But what really got me is that this aims to introduce Carbon-specific functionality here, rather than within Carbon itself, where the maintainer of Carbon is the author of the PHP native method. So I'm really wondering: is there anything that the new native |
Add Carbon clamp method