Declaration of xxx should be compatible with yyy |
OK, I just migrated my web app from CI 2.1.4 to CI 3.0.0 and I am now getting a PHP Runtime Notice that shouldn't be related to the upgrade, but nonetheless it's there and I could use some help.
Quote:A PHP Error was encountered Here is the context. Three different times I am extending Person and on methods keeping the base variables, but adding to it. This means that the save function in Person cannot have the exact same declaration as the classes that extend it. I would prefer not to just suppress these warnings, but I could use some help getting to the bottom of how to declare these functions so that it doesn't generate the notice. Customer.php Code: class Customer extends Person Person.php Code: class Person extends CI_Model |
Messages In This Thread |
Declaration of xxx should be compatible with yyy - by objecttothis - 04-15-2015, 12:49 PM
RE: Declaration of xxx should be compatible with yyy - by Tan5en5 - 04-15-2015, 03:00 PM
RE: Declaration of xxx should be compatible with yyy - by objecttothis - 04-17-2015, 10:11 AM
RE: Declaration of xxx should be compatible with yyy - by mwhitney - 04-20-2015, 10:49 AM
|