iluuu1994 · GitHub

@iluuu1994 mentioned this pull request

Apr 11, 2020

Closed

Girgias

carusogabriel

TysonAndre

TysonAndre

TysonAndre

TysonAndre

TysonAndre

iluuu1994

@iluuu1994

TysonAndre

TysonAndre

TysonAndre

TysonAndre

TysonAndre

TysonAndre

TysonAndre

iluuu1994

@iluuu1994

TysonAndre

Closed

iluuu1994 added a commit to iluuu1994/php-src that referenced this pull request

Jul 11, 2020
As suggested by Tyson Andre:
php#5371 (comment)
Also fix line number of unhandled match error

php-pulls pushed a commit that referenced this pull request

Jul 12, 2020

nikic pushed a commit to nikic/PHP-Parser that referenced this pull request

Jul 15, 2020

Merged

devengineerikrime pushed a commit to devengineerikrime/PHP-Parser that referenced this pull request

Jul 17, 2023

jrfnl added a commit to PHPCompatibility/PHPCompatibility that referenced this pull request

Aug 4, 2023
PHP 8.0 introduced match expressions.
What with originally still supporting a wide range of PHPCS versions, detection of match expressions would need a lot of custom logic, so this would get a separate sniff (which I had as WIP locally).
However, now support for PHPCS < 3.7.1 has been dropped, detection of the keyword can be handled by the `NewKeywords` sniff.
Includes the tests I had originally set up for the separate sniff.
Refs:
* https://wiki.php.net/rfc/match_expression_v2
* php/php-src#5371
* php/php-src@ 9fa1d13 
Related to 809

@jrfnl jrfnl mentioned this pull request

Aug 4, 2023

Merged

sdevtop100-dot added a commit to sdevtop100-dot/php-parser that referenced this pull request

Feb 17, 2026

adrian-enspired pushed a commit to adrian-enspired/php-src that referenced this pull request

Aug 4, 2026

adrian-enspired pushed a commit to adrian-enspired/php-src that referenced this pull request

Aug 4, 2026

Read the original on github.com ↗