On pre-commit hooks, phpcs is run and blocks the commit if the changes being committed doesn't match the defined code-style requirements.
When running php8+ errors are generated by phpcs which causes commits to fail.
An error occurred during processing; checking has been aborted. The error message was: trim(): Passing null to parameter #1 ($string) of type string is deprecated in woocommerce-subscriptions-core/vendor/phpcompatibility/php-compatibility/PHPCompatibility/Sniff.php on line 131
To Reproduce
On php8+
Run composer phpcs
See error
Product impact
[x] Does this issue affect WooCommerce Subscriptions? no
[x] Does this issue affect WooCommerce Payments? no
Describe the bug
On pre-commit hooks, phpcs is run and blocks the commit if the changes being committed doesn't match the defined code-style requirements.
When running php8+ errors are generated by phpcs which causes commits to fail.
An error occurred during processing; checking has been aborted. The error message was: trim(): Passing null to parameter #1 ($string) of type string is deprecated in woocommerce-subscriptions-core/vendor/phpcompatibility/php-compatibility/PHPCompatibility/Sniff.php on line 131
To Reproduce
composer phpcs
Product impact
Additional context