lonnieezell / myth-auth

One-stop Auth package for CodeIgniter 4
MIT License
637 stars 208 forks source link

ValidatorInterface error due to CI 4.5 #621

Open eappleby opened 7 months ago

eappleby commented 7 months ago

After upgrading to CodeIgniter 4.5, the check method in Authentication\Passwords\CompositionValidator began to fail due to the following error:

Could not check compatibility between Myth\Auth\Authentication\Passwords\CompositionValidator::check(string $password, ?CodeIgniter\Entity\Entity $user = null): bool and Myth\Auth\Authentication\Passwords\ValidatorInterface::check(string $password, ?CodeIgniter\Entity $user = null): bool, because class CodeIgniter\Entity is not available

To fix this, I updated the Authentication\Passwords\ValidatorInterface.php file with the following and it seems to have corrected the issue:

#use CodeIgniter\Entity;
use CodeIgniter\Entity\Entity;
hildanku commented 7 months ago

Thank you, your solution is worked to me, i use Codeigniter4.5 image

manageruz commented 7 months ago

@eappleby Thanks for reporting. We need to update myth auth code.

ryanm1928 commented 3 weeks ago

thank you 👍👍👍👍