Giter Club home page Giter Club logo

Comments (2)

Krinkle avatar Krinkle commented on May 28, 2024

From #365 and #366:

Needs to be added in TokenStringMaps under KEYWORDS array.
https://www.php.net/manual/en/reserved.keywords.php

What that page actually says:

The following words cannot be used as [global] constants, class names, or [global] function names. They are, however, allowed as property, constant, and method names of classes, interfaces and traits, […].

from tolerant-php-parser.

Krinkle avatar Krinkle commented on May 28, 2024

Hm.. I misinterpeted the PR at #366. Whilst preparing a revert with test case locally, I realized the test was failing and passing in the opposite direction as I expected. Turns out PR #366 isn't causing match to be seen as a match operator, rather it is merely turning the token from known to unknown. tolerant-php-parser already knew to allow "keyword" tokens as legal method names, so all is well.

From phan/phan#4751:

It seems the uptream issue at #392 was already fixed back in June 2022, before I reported this issue here issue. The fix was released in tolerant-php-parser v0.1.2 on 5 Oct 2022, and Phan's main branch was updated the same day, phan/phan@cc66093.

However, it remained unreleased for several months, until the Phan 5.4.2 release in March 2023. https://github.com/phan/phan/releases/tag/5.4.2

The example code now analyzes without error https://phan.github.io/demo/. Closing as such. Thanks!

I believe this report can likewise we closed a well.

from tolerant-php-parser.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.