plugin-php icon indicating copy to clipboard operation
plugin-php copied to clipboard

INC file extension not recognized

Open mironsh opened this issue 2 years ago • 0 comments

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]     | ^

mironsh avatar Feb 09 '24 22:02 mironsh