- Output for 5.3.0 - 5.3.28, 5.4.0 - 5.4.29
- Fatal error: Cannot use 'Parent' as class name as it is reserved in /in/05euM on line 3
Process exited with code 255.
<?php
abstract class Parent
{
public static $test = 'one';
public static function get()
{
return static::$test;
}
}
class Child extends Parent
{
public static $test = 'two';
}
var_dump(Child::get());