Post #3891075
2026-07-17 17:28 UTC
Pop quizz #PHP on Friday evening:
How can you remove an argument between the parent class and the child class? Is that an impossible task?
#phptip #phptrick
https://php-tips.readthedocs.io/en/latest/tips/less_arguments.html
Replies (1)
-
@phphil@phpc.social 2026-07-17 17:49
@dseguy@phpc.social your screenshot has code that will be an error: [int, float, string...] is not compatible with [int, string...]. in the article it's [int, string, string...] which is compatible with [int, string...].