Skip to content

Class constant named FUNCTION is incorrectly tokenized #1180

@mniewrzal

Description

@mniewrzal

PHPCBF wasn't able to format file: https://raw.githubusercontent.com/felixfbecker/php-language-server/master/src/SymbolFinder.php
It looks that number of iterations was insufficient.

Console output:

Processing SymbolFinder.php [PHP => 704 tokens in 84 lines]... DONE in 31ms (12 fixable violations) => Fixing file: 2/12 violations remaining [made 50 passes]... ERROR in 1.66 secs No fixable errors were found Time: 1.71 secs; Memory: 6Mb 

PHP_CodeSniffer version 2.7.0 (stable)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions