File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ abstract class Enum implements \JsonSerializable
29
29
*
30
30
* @var array
31
31
*/
32
- protected static $ cache = array () ;
32
+ protected static $ cache = [] ;
33
33
34
34
/**
35
35
* Creates a new value of some type
Original file line number Diff line number Diff line change @@ -166,21 +166,21 @@ public function testIsValid($value, $isValid)
166
166
167
167
public function isValidProvider ()
168
168
{
169
- return array (
169
+ return [
170
170
/**
171
171
* Valid values
172
172
*/
173
- array ( 'foo ' , true ) ,
174
- array ( 42 , true ) ,
175
- array ( null , true ) ,
176
- array ( 0 , true ) ,
177
- array ( '' , true ) ,
178
- array ( false , true ) ,
173
+ [ 'foo ' , true ] ,
174
+ [ 42 , true ] ,
175
+ [ null , true ] ,
176
+ [ 0 , true ] ,
177
+ [ '' , true ] ,
178
+ [ false , true ] ,
179
179
/**
180
180
* Invalid values
181
181
*/
182
- array ( 'baz ' , false )
183
- ) ;
182
+ [ 'baz ' , false ]
183
+ ] ;
184
184
}
185
185
186
186
/**
You can’t perform that action at this time.
0 commit comments