Details
-
Bug
-
Status: Closed
-
Blocker
-
Resolution: Fixed
-
10.0
Description
Reproducible code:
<?php $code = <<<EOF if(!isset(\$routes[\$pathinfo])) { // Syntax error unexpected: String after: ] break; } EOF;
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 .= <<<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;
Attachments
Attachments
Issue Links
- links to