Names are not enforced between interfaces, classes and children.
It is a best practice to keep the parameters consistent between class generations, to avoid headaches when using named parameters.
#phptip #phptrick
https://php-tips.readthedocs.io/en/latest/tips/named_parameter_inheritance.html
It is a best practice to keep the parameters consistent between class generations, to avoid headaches when using named parameters.
#phptip #phptrick
https://php-tips.readthedocs.io/en/latest/tips/named_parameter_inheritance.html
Comments
https://onlinephp.io?s=jZDBTsMwEETvkfIPc8ghRqoqIbgk0J6aP-gZLY5NI5K15dhtJcS_syYkZ_Zie3b8xt6Xo7_4siiLgaMJlrRB5xy-ygJSPr2Pg4ZNrOPgGL0TwdTiRXVXDWTTlsU3MkCPNM_oMEx-NJPhOP-XRAtpteYKJqbA0sIDHttFzzFLVGXxCjY3dLWCdK8U3vo0-bqyu8MfmZonpdrs3jJjnR9UWefUmrXmiLbdvDfPavvVho4C_wXu9-go0ggTggsNzqwpfVwiTuv5k92NwTSZHp6CrDJaGdgP&v=8.4.3
For interfaces, it is wild. And it is quite frequent, since projects older than PHP 8.0 didn't have any incentive to align the names: parameter was internal naming.