File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -138,7 +138,7 @@ public function verboseOutput()
138
138
*
139
139
* @return self
140
140
*/
141
- public static function fromUrlEncodedString (string $ serializedConfiguration )
141
+ public static function fromUrlEncodedString ($ serializedConfiguration )
142
142
{
143
143
parse_str ($ serializedConfiguration , $ normalizedConfiguration );
144
144
foreach (array_keys ($ normalizedConfiguration ) as $ key ) {
@@ -157,7 +157,7 @@ public static function fromUrlEncodedString(string $serializedConfiguration)
157
157
}
158
158
159
159
return new self (
160
- $ normalizedConfiguration ['max ' ] ?? [],
160
+ isset ( $ normalizedConfiguration ['max ' ]) ? $ normalizedConfiguration [ ' max ' ] : [],
161
161
'' ,
162
162
$ verboseOutput
163
163
);
@@ -193,15 +193,15 @@ public static function inWeakMode()
193
193
/**
194
194
* @return self
195
195
*/
196
- public static function fromNumber (int $ upperBound )
196
+ public static function fromNumber ($ upperBound )
197
197
{
198
198
return new self (['total ' => $ upperBound ]);
199
199
}
200
200
201
201
/**
202
202
* @return self
203
203
*/
204
- public static function fromRegex (string $ regex )
204
+ public static function fromRegex ($ regex )
205
205
{
206
206
return new self ([], $ regex );
207
207
}
You can’t perform that action at this time.
0 commit comments