Problem
drupal/coder 8.3.x has a deprecation bug on PHP 8.5:
Deprecated: Using null as an array offset is deprecated in
vendor/drupal/coder/coder_sniffer/Drupal/Sniffs/WhiteSpace/ScopeIndentSniff.php
This causes PHPCS to fail on PHP 8.5.
Solution
Update dependencies to versions that support PHP 8.5:
drupal/coder ^9.0
squizlabs/php_codesniffer ^4.0.1
slevomat/coding-standard ^8.25.1
dealerdirect/phpcodesniffer-composer-installer ^1.2
Context
Discovered while updating previousnext/bom-weather#16. PHPCS is currently skipped on PHP 8.5 as a workaround until this is resolved.
Problem
drupal/coder8.3.x has a deprecation bug on PHP 8.5:This causes PHPCS to fail on PHP 8.5.
Solution
Update dependencies to versions that support PHP 8.5:
drupal/coder^9.0squizlabs/php_codesniffer^4.0.1slevomat/coding-standard^8.25.1dealerdirect/phpcodesniffer-composer-installer^1.2Context
Discovered while updating previousnext/bom-weather#16. PHPCS is currently skipped on PHP 8.5 as a workaround until this is resolved.