php-compatinfo icon indicating copy to clipboard operation
php-compatinfo copied to clipboard

Reserved Keywords / Forbidden Names detection

Open llaville opened this issue 5 years ago • 1 comments

Thanks to @fabiang to introduces the first report to add a sniff new reserved words in PHP 7.

This one will complete detection with all other forbidden names :

  • https://www.php.net/manual/en/reserved.keywords.php

llaville avatar Jul 18 '20 15:07 llaville

Differed to next Major version 6.0, because AST could not catch it easily, while it is possible with tokens.

v6.0 will accept either tokens sniff or ast sniff, but v5.4 will be only accept ast sniff.

llaville avatar Jul 20 '20 08:07 llaville