SpaceUnaryOperatorSniff will fail with PHP 8 match

Created on 26 March 2023, over 1 year ago

Problem/Motivation

When I filed πŸ› SpaceUnaryOperatorSniff does not recognize T_LINE Fixed I realized there's more of a problem here: match() will happily fail this too.

Steps to reproduce

https://3v4l.org/a1bVU

Proposed resolution

Give up. Recognizing an unary operator is near impossible using such a simple technique and it'll break as PHP adds more.

Remaining tasks

Remove this sniff.

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Closed: works as designed

Version

8.3

Component

Coder Sniffer

Created by

πŸ‡¨πŸ‡¦Canada Charlie ChX Negyesi 🍁Canada

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024