Skip to content

INC file extension not recognized #2324

@mironsh

Description

@mironsh

Prettier 3.2.5

PHP Plugin 0.22.2

Expected behavior:
PHP files with inc extension should not require closing php tag

Actual behavior:
Prettier throws an error if no ?> is found

[error] test.inc: SyntaxError: Unexpected character "EOF" (3:1)
[error]   1 | <?php
[error]   2 | $test = "echo";
[error] > 3 |
[error]     | ^

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @mironsh

        Issue actions

          INC file extension not recognized · Issue #2324 · prettier/plugin-php