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

Fix bug in pretty printer

Open danog opened this issue 4 years ago • 1 comments

Starting from PHP 8, a number of additional expressions and non-expressions can appear on the rhs of an instanceof expression, including a string (appropriately wrapped in parenthesis).

danog avatar Jan 08 '21 20:01 danog

BTW, also added a similar fix for arrow functions, to avoid problems when printing things like fn () => ($a + $b);

danog avatar Jan 15 '21 07:01 danog

This is fixed by https://github.com/nikic/PHP-Parser/commit/1eb6b5653eb7aeb9e12d2bbbaa8b8f698528e0a2 and https://github.com/nikic/PHP-Parser/commit/cc34c2450c50504b7b3aaa36dfd6276eb9be77d8.

nikic avatar Mar 01 '23 21:03 nikic