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 42da778 commit 88eb11cCopy full SHA for 88eb11c
1 file changed
src/Generator/InputGenerator.php
@@ -213,6 +213,7 @@ public function generate(Operation $operation): ClassName
213
}
214
} elseif ($memberShape instanceof DocumentShape) {
215
$typeAlreadyNullable = true; // The type itself is already nullable
216
+ $constructorBody .= strtr('$this->PROPERTY = $input["NAME"] ?? null;' . "\n", ['PROPERTY' => GeneratorHelper::normalizeName($member->getName()), 'NAME' => $member->getName()]);
217
} elseif ($member->isStreaming()) {
218
$parameterType = 'string|resource|(callable(int): string)|iterable<string>';
219
$returnType = null;
0 commit comments