Yes, incompatible declarations are when a function's parameters don't match its parent's function parameters for example. Class AdminSidebar extends from Sidebar, so the function's parameters should have the same type, the one in adminsidebar doesn't have a type, that's why I said to put a GUIComponent before the variable name.
PHP doesn't care much about variable types, you don't even need to give them a type, that's why it's just a warning.
And the add function is in class_dropdownlist.php file as public function add($option, $index = -1) ^^
__________________
asp.net stole my soul.
Last edited by IntoRain; 05-09-2014 at 06:40 AM.
|