lonnieezell / myth-auth

One-stop Auth package for CodeIgniter 4
MIT License
632 stars 207 forks source link

Accessing property "userName" and "email" is deprecated, in UserModel::fake #599

Closed Patricio-Byte-Solution closed 8 months ago

Patricio-Byte-Solution commented 1 year ago

Since fakerphp/faker 1.14: Accessing property "userName" and "email" is deprecated, use "userName()" and "email()" instead. This occurs in: "myth/auth/src/Models/UserModel.php:119" and "myth/auth/src/Models/UserModel.php:120"

Change: 'email' => $faker->email, 'username' => $faker->userName,

For:

'email' => $faker->email(), 'username' => $faker->userName(),

I appreciate your great work and commitment. Kind regards.

manageruz commented 1 year ago

Hi Patricio-Byte-Solution Thanks for the report. I'll check it and if necessary add appropriate changes to the code.

MGatner commented 1 year ago

Yes, this is correct. The solution in the message is also correct: simply change them to method calls of the same name.