Thread: Error messages~
View Single Post
  #7  
Old 05-09-2014, 06:36 AM
IntoRain's Avatar
IntoRain IntoRain is offline
Moderator
 
Join Date: Jul 2013
Location: Portugal
Posts: 461
Gender: Female
Credits: 19,544
IntoRain is on a distinguished road
Default

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.
Reply With Quote