Hi! I am trying to implement the example of overriding registration form. The issue is that I also have the User model overridden. Since I am using the loadAttribute function as demonstrated in the example it is giving the error because of parameter type not being same.
Below are the two lines of code in my overridden Registration form
public function loadAttributes(User $user)
And the error I am getting is
PHP Strict Warning – yii\base\ErrorException
Declaration of app\models\RegistrationForm::loadAttributes() should be compatible with dektrium\user\models\RegistrationForm::loadAttributes(dektrium\user\models\User $user)