You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PHP 8 uses T_NAME_QUALIFIEDas the token type for symbols like Foo\Bar (previously, each section of an imported symbol appeared as a T_STRING separated by T_NS_SEPARATOR but now it appears that the entire symbol is one token). According to release notes, this was implemented into phpcs as of 3.5.1. There are also T_NAME_FULLY_QUALIFIED, and T_NAME_RELATIVE. The RFC proposal explains it pretty well and you can see the actual tokens listed on the PHP tokens page
As a result, this sniff probably won't work to find imports any more until it can be updated to detect these new tokens and parse them correctly.
The text was updated successfully, but these errors were encountered:
PHP 8 uses
T_NAME_QUALIFIED
as the token type for symbols likeFoo\Bar
(previously, each section of an imported symbol appeared as aT_STRING
separated byT_NS_SEPARATOR
but now it appears that the entire symbol is one token). According to release notes, this was implemented into phpcs as of 3.5.1. There are alsoT_NAME_FULLY_QUALIFIED
, andT_NAME_RELATIVE
. The RFC proposal explains it pretty well and you can see the actual tokens listed on the PHP tokens pageAs a result, this sniff probably won't work to find imports any more until it can be updated to detect these new tokens and parse them correctly.
The text was updated successfully, but these errors were encountered: