Skip to content

Commit 0e61821

Browse files
authored
basic-syntax.xml Specify when it is better to skip closing PHP tags (#4304)
It seemed to me that limiting the skipping of closing PHP tags to only files that contain only PHP code is misleading. After all, we skip closing tags in files with mixed content too, and the condition for skipping is not whether the file consists only of PHP code, but whether the file ends with PHP code
1 parent 0a53584 commit 0e61821

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

language/basic-syntax.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
</para>
5858

5959
<para>
60-
If a file contains only PHP code, it is preferable to omit the PHP closing tag
60+
If a file ends with PHP code, it is preferable to omit the PHP closing tag
6161
at the end of the file. This prevents accidental whitespace or new lines
6262
being added after the PHP closing tag, which may cause unwanted effects
6363
because PHP will start output buffering when there is no intention from

0 commit comments

Comments
 (0)