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

[PHP7] Declaration of Methods should be Compatible with Parent Methods in PHP (even statics) #8944

Closed
filt3rek opened this issue Nov 8, 2019 · 0 comments
Assignees
Labels
bug platform-php Everything related to PHP

Comments

@filt3rek
Copy link
Contributor

filt3rek commented Nov 8, 2019

Hej !

It seems that PHP doesn't allow classes with extends to have the same static function name but different args.
Let's say I've a class A with a static function named "foo", then if I have B extends A and I have also a static function named "foo", Haxe allows it, but on runtime I get something like "Declaration of Methods should be Compatible with Parent Methods"

@filt3rek filt3rek changed the title [PHP7] Declaration of Methods should be Compatible with Parent Methods in PHP [PHP7] Declaration of Methods should be Compatible with Parent Methods in PHP (even statics) Nov 8, 2019
@RealyUniqueName RealyUniqueName self-assigned this Nov 8, 2019
@RealyUniqueName RealyUniqueName added the platform-php Everything related to PHP label Nov 8, 2019
@RealyUniqueName RealyUniqueName added this to the Bugs milestone Nov 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug platform-php Everything related to PHP
Projects
None yet
Development

No branches or pull requests

2 participants