[PhpUnitBridge] fix PHP 5.5 support

This commit is contained in:
Nicolas Grekas 2019-04-12 17:26:05 +02:00
parent 770c7ddec4
commit 08577f4398

View File

@ -138,7 +138,7 @@ class Configuration
* *
* @return self * @return self
*/ */
public static function fromUrlEncodedString(string $serializedConfiguration) public static function fromUrlEncodedString($serializedConfiguration)
{ {
parse_str($serializedConfiguration, $normalizedConfiguration); parse_str($serializedConfiguration, $normalizedConfiguration);
foreach (array_keys($normalizedConfiguration) as $key) { foreach (array_keys($normalizedConfiguration) as $key) {
@ -157,7 +157,7 @@ class Configuration
} }
return new self( return new self(
$normalizedConfiguration['max'] ?? [], isset($normalizedConfiguration['max']) ? $normalizedConfiguration['max'] : [],
'', '',
$verboseOutput $verboseOutput
); );
@ -193,7 +193,7 @@ class Configuration
/** /**
* @return self * @return self
*/ */
public static function fromNumber(int $upperBound) public static function fromNumber($upperBound)
{ {
return new self(['total' => $upperBound]); return new self(['total' => $upperBound]);
} }
@ -201,7 +201,7 @@ class Configuration
/** /**
* @return self * @return self
*/ */
public static function fromRegex(string $regex) public static function fromRegex($regex)
{ {
return new self([], $regex); return new self([], $regex);
} }