File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -161,6 +161,8 @@ The file documents changes to the PHP_CodeSniffer project.
161
161
- Thanks to Juliette Reinders Folmer (@jrfnl ) for the patch
162
162
- Fixed bug #3906 : Tokenizer/CSS: fixed a bug related to the unsupported slash comment syntax
163
163
- Thanks to Dan Wallis (@fredden ) for the patch
164
+ - Fixed bug #3913 : Config stored unknown "long" arguments in a (dynamic) ` $values ` property
165
+ - Thanks to Juliette Reinders Folmer (@jrfnl ) for the patch
164
166
165
167
Props also to Dan Wallis (@fredden ) and Danny van der Sluijs (@DannyvdSluijs ) for reviewing quite a few of the PRs for this release.
166
168
Original file line number Diff line number Diff line change @@ -1232,13 +1232,17 @@ public function processLongArgument($arg, $pos)
1232
1232
if ($ this ->dieOnUnknownArg === false ) {
1233
1233
$ eqPos = strpos ($ arg , '= ' );
1234
1234
try {
1235
+ $ unknown = $ this ->unknown ;
1236
+
1235
1237
if ($ eqPos === false ) {
1236
- $ this -> values [$ arg ] = $ arg ;
1238
+ $ unknown [$ arg ] = $ arg ;
1237
1239
} else {
1238
- $ value = substr ($ arg , ($ eqPos + 1 ));
1239
- $ arg = substr ($ arg , 0 , $ eqPos );
1240
- $ this -> values [$ arg ] = $ value ;
1240
+ $ value = substr ($ arg , ($ eqPos + 1 ));
1241
+ $ arg = substr ($ arg , 0 , $ eqPos );
1242
+ $ unknown [$ arg ] = $ value ;
1241
1243
}
1244
+
1245
+ $ this ->unknown = $ unknown ;
1242
1246
} catch (RuntimeException $ e ) {
1243
1247
// Value is not valid, so just ignore it.
1244
1248
}
You can’t perform that action at this time.
0 commit comments