Merge branch 'next' into better-dataset-support

# Conflicts:
#	src/Concerns/Testable.php
This commit is contained in:
Luke Downing
2021-10-27 18:28:51 +01:00
94 changed files with 1260 additions and 1344 deletions

View File

@ -193,9 +193,7 @@ final class Reflection
}
$arguments[$parameter->getName()] = implode('|', array_map(
static function (ReflectionNamedType $type): string {
return $type->getName();
},
static fn (ReflectionNamedType $type): string => $type->getName(),
($types instanceof ReflectionNamedType)
? [$types] // NOTE: normalize as list of to handle unions
: $types->getTypes(),