php formatting removes ?> from the php file ( only at end of the line )
before format
<?php
?>
after format :
<?php
and there is no ?> there
note: this just happend when ?> is at last line
This is not a real issue, but an intended behavior: you don麓t need the last closing tag :)
Personally, I think its ugly with a closing ?> tag in the last line.
You should not have the closing tag at the end of the file if nothing follows it. If you leave it there, you might accidentally insert white space which could break your output.
@kamil-tekiela is correct, more than a personal taste, when closing the script PHP will add a whitespace, this can break things if you are buffering o might block you from sending headers. You can find more on the official docs.
A design goal for the formatter is PSR2 compliance. As such the closing tag is removed.
The closing ?> tag MUST be omitted from files containing only PHP.
Most helpful comment
You should not have the closing tag at the end of the file if nothing follows it. If you leave it there, you might accidentally insert white space which could break your output.