- Output for 5.3.0 - 5.3.28, 5.4.0 - 5.4.25
- Fatal error: Access level to ChildCls::$var must be protected (as in class BaseCls) or weaker in /in/LuXXv on line 12
Process exited with code 255.
<?php
abstract class BaseCls{
protected $var = 1;
protected abstract function getName($param);
}
class ChildCls extends BaseCls{
private $var = 2;
protected function getName($param){
}
}