certificationy / symfony-pack

A series of questions to prepare for the Symfony certification
https://certification.symfony.com/
MIT License
328 stars 132 forks source link

Answer on a question not so clear #68

Open sandybemonkey opened 6 years ago

sandybemonkey commented 6 years ago

Hi, About the question in php.yml line 44 : question: 'Does PHP support function overloading?' answers:

Does the correct answer would be clearer like this?

timonf commented 6 years ago

Indeed. I can't find anything useful on “function overloading”. But I can find many things about method overloading (__call and __callStatic).

Certificationy supports a help field with some advices (but it's never used). Maybe we should fill this field, after we got an answer!

Maybe @prevueltas can answer this question, because he added it a couple of years ago.

20uf commented 2 years ago

Maybe the question is not specific. It is indeed possible to be able to overload with a magic method but it is also possible to have overloads with polymorphism.