Premium Economy Software


Singapore
Perth W Australia

Yikes! When you see this, you know what to do

PHP Strict Warning – yii\base\ErrorException - Declaration of backend\models\Postsearch::search() should be compatible with common\models\Jobseeker::search()

October 4, 2016 Uncategorized 0 comments

If you get this problem, it means that you have a function in your parent class in this case Jobseeker and a function in your child class PostSearch that have the same name but not the same variables.

This is a strict error, meaning its won’t really kill the program as the function is overwritten by the child class but since you have the same text, it is a flat. The solution is to make the function exactly the same as your Jobseeker function

function search ($action) {

...code

}