Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Answer on a question not so clear #68

Open
sandybemonkey opened this issue May 11, 2018 · 2 comments
Open

Answer on a question not so clear #68

sandybemonkey opened this issue May 11, 2018 · 2 comments

Comments

@sandybemonkey
Copy link

sandybemonkey commented May 11, 2018

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?

@timonf
Copy link

timonf commented May 25, 2018

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
Copy link
Member

20uf commented Aug 2, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants