Skip to content

Document clamp function#4814

Open
kylekatarnls wants to merge 1 commit intophp:masterfrom
kylekatarnls:clamp-function
Open

Document clamp function#4814
kylekatarnls wants to merge 1 commit intophp:masterfrom
kylekatarnls:clamp-function

Conversation

@kylekatarnls
Copy link
Copy Markdown
Contributor

@kylekatarnls kylekatarnls marked this pull request as ready for review December 7, 2025 15:23
@lacatoire
Copy link
Copy Markdown
Member

LGTM, clear, consistent with the RFC, the implementation, and the tests.

Thanks for adding this @kylekatarnls

nicolas-grekas added a commit to symfony/polyfill that referenced this pull request Apr 10, 2026
This PR was merged into the 1.x branch.

Discussion
----------

[8.6] Add `clamp` function

RFC: https://wiki.php.net/rfc/clamp_v2
Original implementation: php/php-src#19434
Documentation: php/doc-en#4814

Commits
-------

2b4c47d [8.6] Add `clamp` function
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