You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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"
The text was updated successfully, but these errors were encountered:
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
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"
The text was updated successfully, but these errors were encountered: