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
Hi,
Seems construction new static(); inside classes doesn't works.
To check
class Foo {
public static function baz()
{
let obj = new static();
return get_class(obj);
}
}
class Bar extends Foo {
}
echo Foo::baz(); //Must be Foo
echo Bar::baz(); //Must be Bar
Thanks.
The text was updated successfully, but these errors were encountered:
Hi,
Seems construction
new static();
inside classes doesn't works.To check
Thanks.
The text was updated successfully, but these errors were encountered: