PHPCSStandards / PHP_CodeSniffer

PHP_CodeSniffer tokenizes PHP files and detects violations of a defined set of coding standards.
BSD 3-Clause "New" or "Revised" License
856 stars 53 forks source link

PHP 8.2 | Tokenizer/PHP: add support for DNF types #461

Closed jrfnl closed 4 months ago

jrfnl commented 4 months ago

Description

This commit adds tokenizer support for DNF types as per the proposal outlined in #387.

This means that:

Based on the currently added tests, the commit safeguards that:

Includes ample unit tests.

Even so, strenuous testing of this PR is recommended as there are so many moving parts involved, it is very easy for something to have been overlooked.

Suggested changelog entry

Added: tokenizer support for Disjunctive Normal Form types.

Related issues/external references

Related to #105

Closes #387 Closes squizlabs/PHP_CodeSniffer#3731

Types of changes

jrfnl commented 4 months ago

Rebased without changes.

Even though there has been no feedback so far, I am going to merge this PR to improve the chances of people using the master branch testing this change in hopes of any undesired side-effects being caught before the next release.