- Output for 7.1.0 - 7.1.17, 7.2.0 - 7.2.6
- Parse error: syntax error, unexpected 'staticTestCallee' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST) in /in/RNhMU on line 5
Process exited with code 255.
<?php
class BaseClass {
public static staticTestCallee() {
echo "I am BaseClass\n";
}
public static staticTestCaller() {
echo self::staticTestCallee();
}
}
class DerivedClass extends BaseClass {
public static staticTestCallee() {
echo "I am DerivedClass\n";
}
}
DerivedClass::staticTestCaller();