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

PHP Multi-line String Issue #73

Open
designcise opened this issue Jun 28, 2014 · 2 comments
Open

PHP Multi-line String Issue #73

designcise opened this issue Jun 28, 2014 · 2 comments

Comments

@designcise
Copy link

If a multi-line string is inside an if or switch statement, the code block only gets collapsed till the start of the multi-line string, for example:

// if or switch here...
$str = <<<STRING
code ....
STRING;

@thehogfather
Copy link
Owner

could you give a concrete example rather than pseudo code?

@designcise
Copy link
Author

Seems to occur only when collapsing "case"; it doesn't collapse the multiline echo (PHP). Try collapsing 'case' in the following example:

switch($x) {
      case 'value':
            if(FALSE) {
                // do something
            }
            else {
                $multiline = <<<TEST
Output something...
TEST;
            }
      break;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants