I have a file with 3 class definitions in it. Each of said classes have a member function called addItem($newItem) some what Like this
Here the function is a member of class A, as is the object 'body'. However, 'body' is an object of type class B. Class B has a member function named addItem($newItem) also
When I execute the code, I get the following error
You, see my delema... its telling my I'm missing an argument in a function declaration, kind of weird. I've never seen an error like this. I have a vauge idea why its doing this, but I really have no clue where to start debugging. Any insight on this? Thanks!
Code:
function addItem($newItem){ //This is line 120, see below
$this->body->addItem($newItem);
}
When I execute the code, I get the following error
Warning: Missing argument 1 for additem() in /home2/deviantd/deviantdreaming-www/test/xhtmllib/xhtmllib.php on line 120
You, see my delema... its telling my I'm missing an argument in a function declaration, kind of weird. I've never seen an error like this. I have a vauge idea why its doing this, but I really have no clue where to start debugging. Any insight on this? Thanks!