Skip to content

Commit fe6cc55

Browse files
committed
RequireOnlyStandaloneIncrementAndDecrementOperatorsSniff: More tests
1 parent fb5a382 commit fe6cc55

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/Sniffs/Operators/data/requireOnlyStandaloneIncrementAndDecrementOperatorsNoErrors.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,8 @@ function ($x) {
3030
++$x;
3131
$x--;
3232
--$x;
33+
34+
$a['a']++;
35+
++$a['a'];
36+
$a['a']--;
37+
--$a['a'];

0 commit comments

Comments
 (0)