Skip to content
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

Unexpected token :?> with broken up switch statement #187

Closed
isleshocky77 opened this issue Jan 9, 2015 · 0 comments
Closed

Unexpected token :?> with broken up switch statement #187

isleshocky77 opened this issue Jan 9, 2015 · 0 comments
Assignees
Labels
Milestone

Comments

@isleshocky77
Copy link

Case 1 (Errors)

The following error occured:
Unexpected token: ?>, line: 1, col: 21, file: /srv/project/templates/_templateA.php.
<?php # /srv/project/templates/_templateA.php ?>
<?php switch($var): ?>
<?php case 'one': ?>
    var a = "one";
    <?php break; ?>
<?php case 'two': ?>
    var a = "two";
    <?php break; ?>
<?php case 'three': ?>
<?php default: ?>
    var a = "three";
    <?php break; ?>
<?php endswitch; ?>

Case 2 (Passes)

Generating pdepend log files, this may take a moment.

Time: 0:00:00; Memory: 8.50Mb
<?php # /srv/project/templates/_templateA.php ?>
<?php switch($var):
     case 'one': ?>
    var a = "one";
    <?php break;
     case 'two': ?>
    var a = "two";
    <?php break;
     case 'three':
     default: ?>
    var a = "three";
    <?php break;
      endswitch; ?>
@manuelpichler manuelpichler self-assigned this Jan 30, 2015
@manuelpichler manuelpichler added this to the 2.1.0 milestone Jan 30, 2015
manuelpichler pushed a commit that referenced this issue Jan 30, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants