Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValidatorInterface error due to CI 4.5 #621

Open
eappleby opened this issue Apr 13, 2024 · 3 comments
Open

ValidatorInterface error due to CI 4.5 #621

eappleby opened this issue Apr 13, 2024 · 3 comments

Comments

@eappleby
Copy link

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
Copy link

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

@manageruz
Copy link
Collaborator

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

@ryanm1928
Copy link

thank you 👍👍👍👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants