One of the recent updates broke WP_HTML_Tag_Processor
's PHPUnit tests
#46588
Labels
[Type] Bug
An existing feature does not function as intended
Description
I've noticed that these changes break PHPUnit tests on PHP 5.6:
https://github.com/WordPress/gutenberg/pull/46018/files#diff-93724b2f6e5dbf16c2b3c0efea57fa442b572f75f325d1cb185cf614b692cf9f
If I revert the changes made to the
WP_HTML_Tag_Processor
class in that PR, then PHPUnit tests pass.Step-by-step reproduction instructions
.wp-env.json
file:npm ci
npm run build
composer config platform.php 5.6
composer remove spatie/phpunit-watcher --dev --no-update
composer update
npm run wp-env start
npm run test:unit:php
Screenshots, screen recording, code snippet
Environment info
macOs 12.6
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: