File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -500,7 +500,8 @@ public function process($values=array())
500
500
if (empty ($ values ) === true ) {
501
501
$ values = $ this ->getCommandLineValues ();
502
502
} else {
503
- $ this ->values = $ values = array_merge ($ this ->getDefaults (), $ values );
503
+ $ values = array_merge ($ this ->getDefaults (), $ values );
504
+ $ this ->values = $ values ;
504
505
}
505
506
506
507
if ($ values ['generator ' ] !== '' ) {
Original file line number Diff line number Diff line change @@ -36,6 +36,9 @@ http://pear.php.net/dtd/package-2.0.xsd">
36
36
-- Thanks to Nik Sun for the patch
37
37
- Exit statements are now recognised as valid closers for CASE and DEFAULT blocks
38
38
-- Thanks to Maksim Kochkin for the patch
39
+ - PHP_CodeSniffer_CLI::process() can now be passed an incomplete array of CLI values
40
+ -- Missing values will be set to the CLI defaults
41
+ -- Thanks to Maksim Kochkin for the patch
39
42
- Fixed bug #20097 : CLI.php throws error in php 5.2
40
43
- Fixed bug #20100 : incorrect Function mysql() has been deprecated report
41
44
- Fixed bug #20123 : PSR2 complains about an empty second statement in for-loop
You can’t perform that action at this time.
0 commit comments