<?php
class Concrete5_Helper_Adult
{
public static function get()
{
return new self();
}
}
class Child extends Adult
{
protected $firstName = 'Chris';
public function getFirstName()
{
return $firstName;
}
}
var_dump(get_class(Adult::get()));
var_dump(get_class(Child::get()));
var_dump(get_class(Child::get()->getFirstName()));
Fatal error: Uncaught Error: Class "Adult" not found in /in/joitp:10
Stack trace:
#0 {main}
thrown in /in/joitp on line 10
Process exited with code 255.
Output for 7.3.12 - 7.3.33, 7.4.0 - 7.4.33
Fatal error: Uncaught Error: Class 'Adult' not found in /in/joitp:10
Stack trace:
#0 {main}
thrown in /in/joitp on line 10
Process exited with code 255.
Fatal error: Class 'Adult' not found in /in/joitp on line 11
Process exited with code 255.
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /in/joitp on line 4
Process exited with code 255.
Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /in/joitp on line 4
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `T_OLD_FUNCTION' or `T_FUNCTION' or `T_VAR' or `'}'' in /in/joitp on line 4
Process exited with code 255.