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 a5384d4 commit 0c5142aCopy full SHA for 0c5142a
modules/openapi-generator/src/main/resources/php-symfony/model_generic.mustache
@@ -52,7 +52,7 @@ class {{classname}} {{#parentSchema}}extends {{{parent}}} {{/parentSchema}}
52
*/
53
public function getSerialized{{nameInPascalCase}}(): string|null
54
{
55
- return $this->{{name}}?->value ? (string) $this->{{name}}->value : null;
+ return !is_null($this->{{name}}?->value) ? (string) $this->{{name}}->value : null;
56
}
57
58
/**
0 commit comments