- Notifications
You must be signed in to change notification settings - Fork8k
Closed
Labels
Description
Description
Calling a static method on an interface should not be allowed as__callStatic
is abstract.
This issue seems to have started with PHP 8.0
The following code:
<?phpinterface Foo {publicstaticfunction__callStatic($method,$args);}Foo::bar();
Resulted in this output:
But I expected this output instead:
Error: cannot call static methods on an interface
PHP Version
PHP >=8.0.0
Operating System
N/A