This is an error 404
There are `0` results
preferences:
168.72 ms | 1399 KiB | 7 Q<?php
class HasSuper
{
private $parentMethod;
protected function super(... $args)
{
parent::$this->parentMethod(...$args); //It's out of scope
}
final public function __call($method, $arguments)
{
$this->parentMethod = $method;
}
}
class Foo extends HasSuper
{
public function hello()
{
echo("Hello World!");
}
}
class Bar extends Foo
{
public function hello()
{
$this->super(); //How can it access Foo::hello() ?
}
}
$bar = new Bar;
$bar->hello();