framework icon indicating copy to clipboard operation
framework copied to clipboard

[12.x] Use `ReplacesAttributes::replaceWhileKeepingCase()` also for imploded parameters

Open shaedrich opened this issue 1 month ago • 0 comments

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

shaedrich avatar Oct 29 '25 17:10 shaedrich