Skip to content

False Positive: [Error] Syntax error, unexpected T_SWITCH, expecting T_STRING on line 55. Processing aborted. #128

Description

@zluiten

As of PHP 7 the keywords listed on this page https://secure.php.net/manual/en/reserved.keywords.php

are allowed as property, constant, and method names of classes, interfaces and traits, except that class may not be used as constant name.

So php7cc shouldn't complain when it encounters a class with a method named switch f.e.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions