tolerant-php-parser icon indicating copy to clipboard operation
tolerant-php-parser copied to clipboard

An early-stage PHP parser designed for IDE usage scenarios.

Results 68 tolerant-php-parser issues
Sort by recently updated
recently updated
newest added
trafficstars

https://app.travis-ci.com/github/Microsoft/tolerant-php-parser/builds is apparently a blank page and broken image at the time this issue was created. This seems to be why https://github.com/microsoft/tolerant-php-parser/pull/405/files was created The same functionality is possible (e.g....

Docs and various sources say enums can implement interfaces: https://wiki.php.net/rfc/enumerations https://www.php.net/manual/en/language.enumerations.methods.php

typed interfaces property declaration as broken

When I need to resolve the FQN of the `use TestTrait` I cannot use the handy getResolvedName. Why is that? ```php namespace YYY; use \XXX\TestTrait; class TestClazz { use TestTrait;...

Currently the parser interprets the "node" at the offset indicated by `` below as a `SourceFileNode` (or `CompoundStatementNode`): ``` $container->get('foo ``` This is because the token is a `T_ENCAPSED_WHITESPACE` token....

8.4 [deprecates implicitly nullable parameters](https://php.watch/versions/8.4/implicitly-marking-parameter-type-nullable-deprecated) This library however supports PHP 7.2 which does not support explicit nullable types (i.e. `?string`) and was end-of-life over 4 years ago. This PR: -...

I've seen errors like this https://github.com/zobo/php-language-server/issues/81 because namespace/classes used reserved words - that the list https://www.php.net/manual/en/reserved.other-reserved-words.php does not include anymore. https://github.com/microsoft/tolerant-php-parser/blob/main/src/TokenStringMaps.php#L103 Propose to clean up the list.

As part of this, stricten the parsing of property names and use a narrower syntax but reuse AssignmentExpression for backwards compatibility of applications that originally used tolerant-php-parser's result of parseExpression....