framework
framework copied to clipboard
[12.x] Use `ReplacesAttributes::replaceWhileKeepingCase()` also for imploded parameters
Follow-up to #57564
As suggested in https://github.com/laravel/framework/pull/57564#issuecomment-3458111299
Now all case-sensitive replacements use replaceWhileKeepingCase() method
The benefits from the original PR become even more valuable with this one:
✅ Improves readability by making the methods more compact without the "internal logic" in each of them ✅ Improves maintainability by having a single source of truth/failure ✅ Makes adapting this in new methods quite easy