Php-parser: Binary cast: isDoubleQuote incorrect

Created on 11 Apr 2018  路  1Comment  路  Source: glayzzle/php-parser

I would expect isDoubleQuote: true here:
image

bug AST

Most helpful comment

* Breaking Changes *

Before b"$var" does use a binary node, and the raw encapsed node does not include the b prefix.

From this commit, the binary encapsed nodes are no more into a binary node and the raw property includes the b prefix.

Next I will have to include the unicode property on encapsed nodes also, as explained here : https://github.com/glayzzle/php-parser/issues/147

>All comments

* Breaking Changes *

Before b"$var" does use a binary node, and the raw encapsed node does not include the b prefix.

From this commit, the binary encapsed nodes are no more into a binary node and the raw property includes the b prefix.

Next I will have to include the unicode property on encapsed nodes also, as explained here : https://github.com/glayzzle/php-parser/issues/147

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mgrip picture mgrip  路  3Comments

aameen951 picture aameen951  路  7Comments

alexander-akait picture alexander-akait  路  8Comments

alexander-akait picture alexander-akait  路  3Comments

alexander-akait picture alexander-akait  路  3Comments