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

Fix Utf8 validation rule #621

Closed
mzur opened this issue Jun 28, 2023 · 0 comments · Fixed by #632
Closed

Fix Utf8 validation rule #621

mzur opened this issue Jun 28, 2023 · 0 comments · Fixed by #632
Assignees
Labels

Comments

@mzur
Copy link
Member

mzur commented Jun 28, 2023

There was an error Call to a member function get() on string here:

return mb_detect_encoding($value->get(), 'UTF-8', true) !== false;

So apparently the $value can be a string, too. Handle the case to fix the issue. Also add a test case for this.

@mzur mzur added the bug label Jun 28, 2023
lehecht added a commit that referenced this issue Jul 28, 2023
@mzur mzur linked a pull request Aug 7, 2023 that will close this issue
@mzur mzur closed this as completed in #632 Aug 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants