File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,8 @@ http://pear.php.net/dtd/package-2.0.xsd">
26
26
</stability >
27
27
<license uri =" https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt" >BSD 3-Clause License</license >
28
28
<notes >
29
+ - The PSR1 standard now correctly bans alternate PHP tags
30
+ -- Previously, it only banned short open tags and not the pre-7.0 alternate tags
29
31
- Added support for only checking files that have been locally staged in a git repo
30
32
-- Use --filter=gitstaged to check these files
31
33
-- You still need to give PHPCS a list of files or directories in which to apply the filter
Original file line number Diff line number Diff line change 7
7
<!-- 2.1. PHP Tags -->
8
8
9
9
<!-- PHP code MUST use the long <?php ?> tags or the short-echo <?= ?> tags; it MUST NOT use the other tag variations. -->
10
+ <rule ref =" Generic.PHP.DisallowAlternativePHPTags" />
10
11
<rule ref =" Generic.PHP.DisallowShortOpenTag" />
11
12
<rule ref =" Generic.PHP.DisallowShortOpenTag.EchoFound" >
12
13
<severity >0</severity >
You can’t perform that action at this time.
0 commit comments