Search
Items tagged with: laravel
Do you use Carbon for your #PHP Date calculations? The diffIn* methods have changed in V3.
This is documented, but still caught me by surprise when testing updating to #Laravel 11.
https://shawnhooper.ca/2024/04/11/breaking-change-diffin-carbon/
Breaking Change - Carbon's diffIn* functions under v3.x - Shawn Hooper
Carbon 3.x changes how it calculates differences between dates. This post describes the problems this causes, and how to resolve them.Shawn Hooper