[
https://issues.apache.org/jira/browse/NETBEANS-1563?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Los Vitaly updated NETBEANS-1563:
---------------------------------
Description:
Reproducible code:
{code:java}
<?php
$code = <<<EOF
if(!isset(\$routes[\$pathinfo])) { // Syntax error unexpected: String
after: ]
break;
break;
}
EOF;
{code}
Same error in Laravel project in vendor directory. Full path
/var/www/html/laravel/vendor/symfony/routing/Matcher/Dumper/PhpMatcherDumper.php
And the same errors in Composer library
{code:java}
$code .= <<<EOF
default:
\$routes = array(
{$this->indent($default, 4)} );
if (!isset(\$routes[\$pathinfo])) { // Syntax error unexpected: String
after: ]
break;
}
list(\$ret, \$requiredHost, \$requiredMethods, \$requiredSchemes) =
\$routes[\$pathinfo];
{$this->compileSwitchDefault(false, $matchHost)
}
EOF;
{code}
was:
Error in Laravel project in vendor directory. Full path
/var/www/html/laravel/vendor/symfony/routing/Matcher/Dumper/PhpMatcherDumper.php
{code:java}
$code .= <<<EOF
default:
\$routes = array(
{$this->indent($default, 4)} );
if (!isset(\$routes[\$pathinfo])) { // Syntax error unexpected: String
after: ]
break;
}
list(\$ret, \$requiredHost, \$requiredMethods, \$requiredSchemes) =
\$routes[\$pathinfo];
{$this->compileSwitchDefault(false, $matchHost)
}
EOF;
{code}
> Error while parsing HEREDOC
> ---------------------------
>
> Key: NETBEANS-1563
> URL: https://issues.apache.org/jira/browse/NETBEANS-1563
> Project: NetBeans
> Issue Type: Bug
> Components: php - Code Analysis
> Affects Versions: 10.0
> Reporter: Los Vitaly
> Priority: Major
> Attachments: heredoc.png, heredoc1.png
>
>
> Reproducible code:
> {code:java}
> <?php
> $code = <<<EOF
> if(!isset(\$routes[\$pathinfo])) { // Syntax error unexpected: String
> after: ]
> break;
> break;
> }
> EOF;
> {code}
> Same error in Laravel project in vendor directory. Full path
>
> /var/www/html/laravel/vendor/symfony/routing/Matcher/Dumper/PhpMatcherDumper.php
> And the same errors in Composer library
> {code:java}
> $code .= <<<EOF
> default:
> \$routes = array(
> {$this->indent($default, 4)} );
> if (!isset(\$routes[\$pathinfo])) { // Syntax error unexpected: String
> after: ]
> break;
> }
> list(\$ret, \$requiredHost, \$requiredMethods, \$requiredSchemes) =
> \$routes[\$pathinfo];
> {$this->compileSwitchDefault(false, $matchHost)
> }
> EOF;
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists