<?php
/**
* this is the CHILD class
*/
class CustomCourse extends BaseContact/*BaseCourse*/ {
public function toArray() {
$values = parent::toArray();
// do some more with $values here
return $values;
}
}
/**
* this is the PARENT class
*/
class BaseContact /*extends Course*/ {
public function toArray($platform = GOLF_PLATFORM) {
$values = array();
$values['user_id'] = $this->getUserId();
// do some more in here
return $values;
}
}
Fatal error: Declaration of CustomCourse::toArray() must be compatible with BaseContact::toArray($platform = GOLF_PLATFORM) in /in/8kLLM on line 8
Process exited with code 255.
Output for 7.4.0 - 7.4.33
Warning: Declaration of CustomCourse::toArray() should be compatible with BaseContact::toArray($platform = GOLF_PLATFORM) in /in/8kLLM on line 8
Strict Standards: Declaration of CustomCourse::toArray() should be compatible with BaseContact::toArray($platform = GOLF_PLATFORM) in /in/8kLLM on line 6
Output for 5.4.0 - 5.4.30, 5.5.0 - 5.5.14
Notice: Use of undefined constant GOLF_PLATFORM - assumed 'GOLF_PLATFORM' in /in/8kLLM on line 6
Strict Standards: Declaration of CustomCourse::toArray() should be compatible with BaseContact::toArray($platform = 'GOLF_PLATF...') in /in/8kLLM on line 6
Strict Standards: Declaration of CustomCourse::toArray() should be compatible with that of BaseContact::toArray() in /in/8kLLM on line 6
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/8kLLM on line 8
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/8kLLM on line 8
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/8kLLM on line 8
Process exited with code 255.