What is going on latelly with v 12 receiving many breaking changes as minor fixes? Return types etc.? #56898
Replies: 1 comment 8 replies
-
The added types to the helper functions just prove that the Laravel framework can never be type safe. When the framework itself isn't respecting the documented contracts, and "major" ecosystem packages are breaking those same contracts, it just proves that at this point the dynamic type system of the PHP 5 era needs to be considered a first-class feature of Laravel, and that those looking for strongly typed functionality need to rely more on tooling like PHPStan and the Larastan plugin versus the framework itself. The fact that these changes are breaking B/C for some is really a side effect of the duck-typing nature of Laravel and not necessarily a bug in the framework, minus the places in the framework where it's not respecting the contracts.
My small website has Renovate running pretty regularly. So for almost any non-major release in the Composer and NPM ecosystems, updates are being applied pretty quickly for me. So the combination of automated dependency management tooling and a majority of my own application's code being covered with automated tests means that site is being updated and deployed sometimes several times a day without me needing to sit there and manually validate everything. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
We noticed lately that many breaking changes are finding their way as minor changes in version 12.
Can someone explain why?
And also, how are they caught so fast? Are there projects that don't use composer.lock? Or the composer update command is run frequently by many teams?
Beta Was this translation helpful? Give feedback.
All reactions