diff --git a/src/TypesGenerator.php b/src/TypesGenerator.php index 99897159..86049a48 100644 --- a/src/TypesGenerator.php +++ b/src/TypesGenerator.php @@ -633,8 +633,8 @@ private function generateField(array $config, array $class, \EasyRdf_Resource $t CardinalitiesExtractor::CARDINALITY_N_N, ], true); - if (isset($propertyConfig['nullable']) && false === $propertyConfig['nullable']) { - $isNullable = false; + if (isset($propertyConfig['nullable'])) { + $isNullable = (bool) $propertyConfig['nullable']; } else { $isNullable = !in_array($cardinality, [ CardinalitiesExtractor::CARDINALITY_1_1,