Skip to content

Support new PHP 8.5 syntaxes #1306

@jrfnl

Description

@jrfnl

PHP 8.5 introduces new syntaxes for which it should be verified if the Tokenizer needs updates and/or whether any sniffs need updating.

Action list

Notes:

  • Action items in italics are tentative. Investigation and testing is needed to determine whether any changes are needed and if so, which.
  • For action items not in italics, I'm fairly certain those will be needed.
  • This list is not set in stone and is subject to change once investigation for supporting a syntax starts.

Action list

Contribution Process

If anyone familiar with the PHP and PHPCS tokenizer wants to start work on any of these, please leave a comment in this ticket to claim an action item.

New custom PHPCS tokens may be needed. If that's the case, please open a separate issue with a detailed proposal on how to handle the syntax, what alternatives have been considered, what the consequences would be and why the proposed option should be accepted. Please open this issue before creating a PR.

If anyone needs it, here are some examples of earlier proposals for supporting PHP syntaxes from before PHP 8.5:

Timeline

For anyone coming to this ticket to see when syntax support for PHP 8.5 syntaxes is expected, please do NOT spam this ticket with repeated comments asking for a timeline.
It will be ready when it's ready and whatever is ready will be included in a release forthwith.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions