Skip to content

Commit c9cadd1

Browse files
committed
Add default value for TypePart::$typeNullable to prevent a fatal error
…when setNullable has not been called explicitly. Error was: PHP Fatal error: Uncaught TypeError: Return value of gossi\codegen\model\PhpParameter::getNullable() must be of the type bool, null returned in […]/vendor/gossi/php-code-generator/src/model/parts/TypePart.php:75
1 parent cfd9622 commit c9cadd1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/model/parts/TypePart.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ trait TypePart {
1919
private $typeDescription;
2020

2121
/** @var bool */
22-
private $typeNullable;
22+
private $typeNullable = false;
2323

2424
/**
2525
* Sets the type

0 commit comments

Comments
 (0)