Skip to content

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

Closed
@morozov

Description

@morozov

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions