- Output for 5.3.0 - 5.3.28, 5.4.0 - 5.4.23
- Fatal error: Cannot make static method Test::t2() non static in class Test2 in /in/E1YSe on line 12
Process exited with code 255.
<?php
class Test
{
public function t1() { echo $this->t2(); }
static public function t2() { return "Test"; }
}
class Test2 extends Test
{
public function t2() { return "Test2"; }
}
$t = new Test2;
$t->t1();