symfony-pack icon indicating copy to clipboard operation
symfony-pack copied to clipboard

Answer on a question not so clear

Open sandybemonkey opened this issue 6 years ago • 2 comments

Hi, About the question in php.yml line 44 : question: 'Does PHP support function overloading?' answers: - {value: "Yes, in all cases", correct: false} - {value: "Yes, but not in all cases", correct: true} - {value: "Yes, but it depends on the function scope", correct: false} - {value: "Yes, except when it is an anonymous function", correct: false}

Does the correct answer would be clearer like this?

sandybemonkey avatar May 11 '18 07:05 sandybemonkey

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.

timonf avatar May 25 '18 16:05 timonf

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.

20uf avatar Aug 02 '22 10:08 20uf