Skip to content

[13.x] Use native clamp function#59858

Closed
jnoordsij wants to merge 2 commits into
laravel:13.xfrom
jnoordsij:native-clamp
Closed

[13.x] Use native clamp function#59858
jnoordsij wants to merge 2 commits into
laravel:13.xfrom
jnoordsij:native-clamp

Conversation

@jnoordsij
Copy link
Copy Markdown
Contributor

This replaces the manual Number::clamp implementation with the PHP native clamp, which is new in PHP 8.6 (unreleased). See also:

@jnoordsij
Copy link
Copy Markdown
Contributor Author

@taylorotwell any reason in particular not to want this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants