"Cannot call constructor" is a real #PHP error message.
And there is also "Must call the parent constructor".

To call or not to call the constructor: definitely a question, and may be, an improvement for #PHP 8.5.

#phptip #phptrick

https://www.exakat.io/en/php-constructors-and-inheritance/
Post image

Comments