Closed shotanue closed 1 year ago
This is interesting. The code was written way before named parameters was a thing. Renaming them now would be a BC break.
This is something we can only change in 2.0. :/
PHP doesn't enforce the name on arguments on child implementations. This means they shouldn't be use when coding against interfaces.
Hi,
According to PSR-7 document, it defines the
withHeader
signature below.However, the implementation is
Therefore, using named arguments like below, the inconsistency of argument names causes runtime or static analysis(e.g. psalm, intelephense, PhpStorm) errors.