We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
hQuery.php/src/hQuery/Element.php
Lines 161 to 166 in cbe7a6d
I get the following error:
ErrorException: reset() expects parameter 1 to be array, boolean given in /home/vagrant/sellercrew/vendor/duzun/hquery/src/hQuery/Element.php:163
My best guess here is that this assumes the class to be present in at least one place in the whole DOM. If not present, the $ret becomes false.
The text was updated successfully, but these errors were encountered:
Thanks for catching this bug!
Fixed in 1ee94592.
It was an interesting edge case:
$elementWithAnyClass->hasClass(['existing-in-doc', 'non-existing-in-doc']);
Sorry, something went wrong.
No branches or pull requests
hQuery.php/src/hQuery/Element.php
Lines 161 to 166 in cbe7a6d
I get the following error:
My best guess here is that this assumes the class to be present in at least one place in the whole DOM. If not present, the $ret becomes false.
The text was updated successfully, but these errors were encountered: