File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ $everythingZero = [
54
54
0. => 'r ' ,
55
55
.0 => 's ' ,
56
56
(true ) ? 0 : 1 => 't ' ,
57
- ! true => 'u ' ,
57
+ ! \ true => 'u ' ,
58
58
];
59
59
60
60
$ everythingOne = [
@@ -80,7 +80,7 @@ $everythingOne = [
80
80
1. => 'q ' ,
81
81
001. => 'r ' ,
82
82
(true ) ? 1 : 0 => 's ' ,
83
- ! false => 't ' ,
83
+ ! \ false => 't ' ,
84
84
(string ) true => 'u ' ,
85
85
];
86
86
@@ -165,3 +165,13 @@ $testPHPLt8VsPHP8 = array(
165
165
1 => 'j ' , // Duplicate in PHP < 8, not in PHP 8.
166
166
2 => 'k ' , // Duplicate in PHP < 8, not in PHP 8.
167
167
);
168
+
169
+ // Issue PHPCSExtra#316, PHPCSStandards/PHPCSUtils#619 no false positive for numeric string keys starting/ending with an underscore.
170
+ $ validStringKeys = array (
171
+ '_1 ' => 'value1 ' ,
172
+ '_2 ' => 'value2 ' ,
173
+ '3_ ' => 'value3 ' ,
174
+ '4_ ' => 'value4 ' ,
175
+ '_5_ ' => 'value5 ' ,
176
+ '_6_ ' => 'value6 ' ,
177
+ );
You can’t perform that action at this time.
0 commit comments