Skip to content

Commit aeeade9

Browse files
committed
Fixed bug #1203 : Inconsistent behavior of PHP_CodeSniffer_File::findEndOfStatement
1 parent 5a1a5a4 commit aeeade9

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

CodeSniffer/File.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3503,6 +3503,7 @@ public function findEndOfStatement($start, $ignore=null)
35033503
if ($this->_tokens[$i]['code'] === T_CLOSE_PARENTHESIS
35043504
|| $this->_tokens[$i]['code'] === T_CLOSE_SQUARE_BRACKET
35053505
|| $this->_tokens[$i]['code'] === T_CLOSE_CURLY_BRACKET
3506+
|| $this->_tokens[$i]['code'] === T_CLOSE_SHORT_ARRAY
35063507
|| $this->_tokens[$i]['code'] === T_OPEN_TAG
35073508
|| $this->_tokens[$i]['code'] === T_CLOSE_TAG
35083509
) {

package.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ http://pear.php.net/dtd/package-2.0.xsd">
5252
- Fixed bug #1188 : Generic.WhiteSpace.ScopeIndent issues with inline HTML and multi-line function signatures
5353
- Fixed bug #1190 : phpcbf on if/else with trailing comment generates erroneous code
5454
- Fixed bug #1191 : Javascript sniffer fails with function called "Function"
55+
- Fixed bug #1203 : Inconsistent behavior of PHP_CodeSniffer_File::findEndOfStatement
5556
</notes>
5657
<contents>
5758
<dir name="/">

0 commit comments

Comments
 (0)