- Output for 5.3.7 - 5.3.28, 5.4.0 - 5.4.30
- Fatal error: Cannot use 'Parent' as class name as it is reserved in /in/9GqhV on line 12
Process exited with code 255.
<?php
class Grandparent{
protected static $data = array(
'default',
);
protected static function filter(){
var_dump(self::$data);
}
}
class Parent extends Grandparent{
protected static $data = array(
'one',
'two',
);
}
class Child extends Parent{
}
child::filter();