Since PHP 8.0 introduced named parameters, renaming method parameters is no longer a safe internal refactor — it can break existing callers. Four strategies are presented for handling this: parameter aliasing with default values (keeping both old and new params with a sunset period), the adapter/wrapper pattern (old method

Sort: