Skip to content

Commit f1990e4

Browse files
committed
Add changelog
1 parent 2b80f92 commit f1990e4

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

NEWS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ PHP NEWS
77
request. (ilutov)
88
. It is now possible to use reference assign on WeakMap without the key
99
needing to be present beforehand. (ndossche)
10+
. Added `clamp()`. (kylekatarnls, thinkverse)
1011

1112
- Hash:
1213
. Upgrade xxHash to 0.8.2. (timwolla)

UPGRADING

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ PHP 8.6 UPGRADE NOTES
6666
6. New Functions
6767
========================================
6868

69+
- Core:
70+
. `clamp()` returns the given value if in range, else return the nearest bound.
71+
RFC: https://wiki.php.net/rfc/clamp_v2
72+
6973
========================================
7074
7. New Classes and Interfaces
7175
========================================

0 commit comments

Comments
 (0)