Skip to content

Support drupal/coder ^9.0 for PHP 8.5 compatibility #93

@kimpepper

Description

@kimpepper

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions