mirror of
https://github.com/danog/psalm-plugin-phpunit.git
synced 2024-11-30 04:29:08 +01:00
PHP 7.0 compatibility
This commit is contained in:
parent
3452ea5d76
commit
586c2ef133
@ -349,9 +349,11 @@ class TestCaseHandler implements AfterClassLikeVisitInterface, AfterClassLikeAna
|
||||
]);
|
||||
}
|
||||
|
||||
$combine = function (?Type\Union $a, Type\Union $b) use ($codebase): Type\Union {
|
||||
return $a ? Type::combineUnionTypes($a, $b, $codebase) : $b;
|
||||
};
|
||||
$combine =
|
||||
/** @param null|Type\Union $a */
|
||||
function ($a, Type\Union $b) use ($codebase): Type\Union {
|
||||
return $a ? Type::combineUnionTypes($a, $b, $codebase) : $b;
|
||||
};
|
||||
|
||||
return new Type\Atomic\TIterable([
|
||||
array_reduce($key_types, $combine),
|
||||
|
Loading…
Reference in New Issue
Block a user