We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e94da2 commit ac0fcb7Copy full SHA for ac0fcb7
src/ValueObject/ArrayFactory.php
@@ -201,7 +201,7 @@ public function classBuilder(ArrayType $typeDefinition): ClassBuilder
201
return $this->classBuilderFromNative($name, ...$typeDefinition->items());
202
}
203
204
- private function determineType(string $name, TypeSet ...$typeSets): TypeDefinition
+ private function determineType(string $name, TypeSet ...$typeSets): ?TypeDefinition
205
{
206
if (\count($typeSets) !== 1) {
207
throw new \RuntimeException('Can only handle one JSON type');
0 commit comments