diff --git a/generator/src/FileCreator.php b/generator/src/FileCreator.php index 610cd107..bc90f12e 100644 --- a/generator/src/FileCreator.php +++ b/generator/src/FileCreator.php @@ -35,10 +35,9 @@ public function generatePhpFile(array $functions, string $path): void \fwrite($stream, "getDefaultValue() === "null") { - return true; - } - - return $this->getDefaultValue() === "NULL"; + return ($this->getDefaultValue() === "null"); } /* @@ -114,6 +110,10 @@ public function getDefaultValue(): ?string return null; } + if ($initializer === "NULL") { + return "null"; + } + return $initializer; }