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

Syntax error when stripping trailing PHP close tag and previous statement has no semicolon #773

Closed
adduc opened this issue Nov 18, 2015 · 2 comments

Comments

@adduc
Copy link

adduc commented Nov 18, 2015

When running CBF with the PSR-2 standard against the sample file below, the trailing PHP close tag is omitted from output, causing a syntax error.

Sample File

<?php echo $data ?>

Output

<?php echo $data
@adduc adduc changed the title Syntax error when stripping ending PHP tag Syntax error when stripping trailing PHP close tag Nov 18, 2015
@bpicolo
Copy link

bpicolo commented Nov 19, 2015

The stripped closing tag seems right. Semicolon is missing now though

@gsherwood gsherwood changed the title Syntax error when stripping trailing PHP close tag Syntax error when stripping trailing PHP close tag and previous statement has no semicolon Nov 23, 2015
gsherwood added a commit that referenced this issue Nov 23, 2015
@gsherwood
Copy link
Member

The semicolon is now added.

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

No branches or pull requests

3 participants