Skip to content

Handle new token types and PHP parser enhancements #104

Description

@antecedent

This entails, first and foremost, dealing with the T_NAME_* trio of PHP 8:

  • T_NAME_FULLY_QUALIFIED,
  • T_NAME_QUALIFIED,
  • T_NAME_RELATIVE.

The preceding is a priority, because there are places where Patchwork scans relative names and resolves them into qualified names. And as of v2.1.12, it still assumes that the names are made of T_STRING and T_NS_SEPARATOR only.

After that, there are attributes, and there is fn, and perhaps there is something else that I cannot recall for the time being. Some new test cases are due to verify that neither of these tokens will interfere with Patchwork's parser.

Also, somewhat tangentially, we should make sure that Patchwork plays nice with the syntax enhancements that came PHP 7. Some precedences changed; some new compositions of preexisting syntactic constructs became possible.

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