Skip to content

Commit d613dc4

Browse files
committed
Remove semicolon so that array is seen as T_ARRAY
1 parent eeb3c2f commit d613dc4

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/Standards/Generic/Tests/Arrays/DisallowLongArraySyntaxUnitTest.3.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
// This should be the only test in this file.
55
// Testing that the sniff is *not* triggered.
66

7-
$var = array;
7+
$var = array

src/Standards/Generic/Tests/Arrays/DisallowLongArraySyntaxUnitTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ public function getErrorList($testFile='')
4646
2 => 1,
4747
9 => 1,
4848
];
49+
case 'DisallowLongArraySyntaxUnitTest.3.inc':
50+
return [
51+
7 => 1,
52+
];
4953
default:
5054
return [];
5155
}//end switch

0 commit comments

Comments
 (0)