New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
parse $result = &($context->getPageData());
not ok,have any idea ?
#996
Comments
Simply because it is not valid PHP code. Try to run it in PHP and you get almost the same parsing error |
That's right -- the right hand side of |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
parse
$result = &($context->getPageData());
not ok,error:Fatal error: Uncaught PhpParser\Error: Syntax error, unexpected ';', expecting '[' or T_OBJECT_OPERATOR or T_NULLSAFE_OBJECT_OPERATOR or '{' on line 36 in /PhpParser/ParserAbstract.php:318
Stack trace:
#0 /PhpParser/ParserAbstract.php(159): PhpParser\ParserAbstract->doParse()
#1 /PhpParser/Parser/Multiple.php(51): PhpParser\ParserAbstract->parse('<?php\n/...', Object(PhpParser\ErrorHandler\Throwing))
#2 PhpParser/Parser/Multiple.php(32): PhpParser\Parser\Multiple->tryParse(Object(PhpParser\Parser\Php7), Object(PhpParser\ErrorHandler\Throwing), '<?php\n/...')
#3 php_parser.php(23): PhpParser\Parser\Multiple->parse('< in /PhpParser/ParserAbstract.php on line 318
for compare, parse
$a = $context->getPageData(); $result = &$a;
is okThe text was updated successfully, but these errors were encountered: