Php-parser: [feature] add rawValue property for nowdoc/heredoc

Created on 27 Sep 2018  路  3Comments  路  Source: glayzzle/php-parser

<<<'EOF'
EOF;

<<<'EOF'

EOF;

value is empty for both nodes, in theory we can get newline from raw, but raw contains many unnecessary characters (label, quotes, <<<), maybe we can add rawValue property which contains only raw value:

  • `` for first.
  • \n for second.
bug AST PARSER

All 3 comments

Also i find bug, look on raw property - first node contains raw value for first and second node

here still a little bug on the raw value :

image

@evilebottnawi can we close this issue ? I see a merged PR

Was this page helpful?
0 / 5 - 0 ratings

Related issues

alexander-akait picture alexander-akait  路  8Comments

alexander-akait picture alexander-akait  路  7Comments

nevadascout picture nevadascout  路  3Comments

takashiki picture takashiki  路  7Comments

Rivendall picture Rivendall  路  6Comments