PHP-Parser icon indicating copy to clipboard operation
PHP-Parser copied to clipboard

A PHP parser written in PHP

Results 119 PHP-Parser issues
Sort by recently updated
recently updated
newest added

- `getReformattedText()`: fix `@return` types, remove comment trimming to keep empty lines in comment at begin and end, optimize detection of multi-line comments - `getShortestWhitespacePrefixLen()`: replace float `INF` to `PHP_INT_MAX`...

At the moment, there are nodes in php-parser, that include list of other stmts. While iterating over can be easy with `property_exists($node, 'stmts')` (feels like poor coding), the hooking to...

Current implementation have some problems: 1. Can't customize EOL and left offset, by default printer use "\n" instead `PHP_EOL` or auto-detecting by first line 2. Parent node/scope not passing to...

The method `defineCompatibilityTokens()` of `PhpParser\Lexer` conditionally defines the `T_BAD_CHARACTER`, `T_FN`, `T_COALESCE_EQUAL`, `T_NAME_QUALIFIED`, `T_NAME_FULLY_QUALIFIED`, `T_NAME_RELATIVE`, `T_MATCH`, and `T_NULLSAFE_OBJECT_OPERATOR` when they are not already defined. Why does the non-emulative lexer need these...

Can I have this please? I think I [need](https://github.com/jaem3l/unfuck/pull/4) it ...

Lambdas not (indirect) referencing $this must be declared static.

Add curly braces to indirect variables to make them clear to understand.

Add void return type to functions with missing or empty return statements, but priority is given to @return annotations.