signup problem


I have problem with frontend signup Yii2

after follow fields and signup button, show this error:

PHP Compile Error – yii\base\ErrorException

Declaration of common\models\User::findIdentityByAccessToken() must be compatible with yii\web\IdentityInterface::findIdentityByAccessToken($token, $type = NULL)

1. in /home/xxx/public_html/common/models/User.php at line 25

16171819202122232425262728293031323334 * @property string $email

 * @property string $auth_key

 * @property integer $role

 * @property integer $status

 * @property integer $created_at

 * @property integer $updated_at

 * @property string $password write-only password


class User extends ActiveRecord implements IdentityInterface


    const STATUS_DELETED = 0;

    const STATUS_ACTIVE = 10;


    const ROLE_USER = 10;



     * Creates a new user


     * @param  array       $attributes the attributes given by field => value

2. yii\base\ErrorHandler::handleFatalError()

what’s problem?

It’s described well in the first line of the error message. Method signature doesn’t match.

thanks for reply

How to resolve this problem?

Well, fix it to match.