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
Copy file name to clipboardExpand all lines: user_guide_src/source/changelogs/v4.8.0.rst
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -256,6 +256,8 @@ Others
256
256
257
257
- **Float and Double Casting:** Added support for precision and rounding mode when casting to float or double in entities.
258
258
- Float and Double casting now throws ``CastException::forInvalidFloatRoundingMode()`` if an rounding mode other than up, down, even or odd is provided.
259
+
- **Environment:** Added ``CodeIgniter\EnvironmentDetector`` class and corresponding ``environmentdetector`` service as a mockable wrapper around the ``ENVIRONMENT`` constant.
260
+
Framework internals that previously compared ``ENVIRONMENT`` directly now go through this service, making environment-specific branches reachable in tests via ``Services::injectMock()``. See :ref:`environment-detector-service`.
0 commit comments