bin/generate-gutenberg-php.php
should be refactored into a PHP class
#46016
Labels
[Type] Code Quality
Issues or PRs that relate to code quality
What problem does this address?
This is a follow-up task to #45817.
bin/generate-gutenberg-php.php
uses a global variable -$plugin_version
. This seems unnecessary and causes linter errors when enabling theWordPress-Extra
ruleset.Please see #18502 for more details.
What is your proposed solution?
Let's refactor this code into a PHP class and add unit tests to ensure it works as expected.
I've created a draft version of such a class, but I didn't have time to test it and write proper unit tests.
The text was updated successfully, but these errors were encountered: