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

One way to fix this would be to have `tests/cases/grammar/skipped.json` and `tests/cases/lexical/skipped.json`, and have the corresponding test cases load the corresponding skipped files. Example: tests/skipped.json currently contains `stringLiteral16.php`. This skips...

bug
test-infrastructure

Right now, it's fairly obvious where the majority of our memory usage stems from (*ahem PHP objects...*), and we have some ideas on how to cut down on that when...

discuss
performance

I saw a lot of messy access to static properties in the code base, i.e. static properties are accessed on the instance with `->` or on the instance with `::`...

discuss

_From @SilbinaryWolf on November 3, 2017 0:42_ Silverstripe 3.6 uses the class name "Object" and runs fine in PHP 7.1. I'm aware Object is a soft keyword and could stop...

e.g. right now we test that skipped/missing tokens are properly included in the tree, but we have no tests for the post-parse `getDiagnostics` walk. Thoughts?

discuss
error-handling
continuous-improvement

https://github.com/felixfbecker/php-language-server/issues/448 A namespace named `object` is ok, even though it's a reserved word: http://php.net/manual/en/reserved.other-reserved-words.php It's a "soft reserved" word - but it even seems that reserved words like 'int' are...

bug

Similar to #83 Motivation: - More likely that phpdoc will remain accurate when refactoring - Improved autocompletion and error detection in projects using tolerant-php-parser - Detect potential bugs in new...

continuous-improvement

```bash $ php --no-php-ini -d short_open_tag=0 -r 'echo json_encode(token_get_all("

test-infrastructure

Motivations: - If these were unavailable, applications would have to extract the string from the file contents, trim whitespace to check if something was a magic constant (e.g. to know...

feature

Getting the resolved name of a use clause using `QualifiedName#getResolvedName` is [explicitly disallowed](https://github.com/Microsoft/tolerant-php-parser/blob/master/src/Node/QualifiedName.php#L87) and I am not sure why, it seems legitimate to me? ```php namespace SomeNamespace; use Something\HelloTrait; class...