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

PHP 7.2: Skip counting currentNesting if null in Injector #157

Merged
merged 1 commit into from
Dec 30, 2017

Conversation

zerocrates
Copy link
Contributor

This is an error starting in PHP 7.2, causing a test failure:

Unexpected PHP Error [count(): Parameter must be an array or an object that implements Countable] severity [2] in [HtmlPurifier/library/HTMLPurifier/Injector.php line 160]
in testErrorRequiredElementNotAllowed
in HTMLPurifier_Strategy_MakeWellFormed_InjectorTest

I used empty to parallel an existing test in the same method.

This is an error starting in PHP 7.2
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

Successfully merging this pull request may close these issues.

None yet

2 participants