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

Redundant semicolon added to a file when fixing PSR2.Files.ClosingTag.NotAllowed #2943

Closed
morozov opened this issue Apr 25, 2020 · 1 comment
Milestone

Comments

@morozov
Copy link
Contributor

morozov commented Apr 25, 2020

Consider the following file:

<?php
/*
 * Some comment goes here
 */
?>

Fixing it using phpcbf --standard=PSR2 test.php makes it look like:

<?php
;/*
 * Some comment goes here
 */

The semicolon is needed to address #773 but it's only needed when there is something else than whitespace or comment after the opening <?php tag.

@gsherwood gsherwood added this to the 3.5.6 milestone May 1, 2020
gsherwood added a commit that referenced this issue May 1, 2020
gsherwood added a commit that referenced this issue May 1, 2020
gsherwood added a commit that referenced this issue May 1, 2020
@gsherwood
Copy link
Member

Thanks for reporting this bug. The fix will be released in 3.5.6.

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

2 participants