From d746023986598ee178e97b6ffba66f03bae3623a Mon Sep 17 00:00:00 2001 From: Edgard Date: Thu, 7 Oct 2021 13:48:20 -0300 Subject: [PATCH] Fix invalid phpdoc for casted property without return (#1236) --- src/Console/ModelsCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Console/ModelsCommand.php b/src/Console/ModelsCommand.php index 651f37e7f..f04291151 100644 --- a/src/Console/ModelsCommand.php +++ b/src/Console/ModelsCommand.php @@ -403,7 +403,7 @@ public function castPropertiesType($model) $realType = $this->getTypeOverride($realType); $this->properties[$name]['type'] = $this->getTypeInModel($model, $realType); - if (isset($this->nullableColumns[$name])) { + if (isset($this->nullableColumns[$name]) && $this->properties[$name]['type']) { $this->properties[$name]['type'] .= '|null'; } }