0

Severity: Warning

Message: Declaration of Admin::delete($id = '') should be compatible with Core::delete($tbl, $database, $param, $id)

Filename: controllers/admin.php

Controller Admin:

   function delete($id='')
{
    core::delete('admin','gammu','ID',$id);
    redirect('admin');
}}

Core:

function delete($tbl,$database,$param,$id)
{
    $this->model->delete($tbl,$database,$param,$id);
}
Your Common Sense
  • 156,878
  • 40
  • 214
  • 345
Hari 1996
  • 3
  • 5
  • 1
    what does that `core::delete` will do ? `core` is your model name ? – Arun pandian M Aug 10 '17 at 04:01
  • Sorry I got a wrong input – Hari 1996 Aug 10 '17 at 05:39
  • Follow [this answer](https://stackoverflow.com/questions/3115388/declaration-of-methods-should-be-compatible-with-parent-methods-in-php). Method(s and properties) of Admin class should be compatible with method(s and properties) of Core class as parent class. Parent Core class delete() method has different arguments than you use in Admin class delete() method. – Tpojka Aug 10 '17 at 05:50

0 Answers0