Skip to content

Commit 877ad42

Browse files
authored
Merge pull request #186 from robertlemke/issue-185
Fix generating null return type from reflection in TypeGenerator
2 parents ff65d02 + 156b60f commit 877ad42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Generator/TypeGenerator.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public static function fromReflectionType(
6969

7070
return new self(
7171
$atomicType,
72-
$atomicType->type !== 'mixed' && $atomicType !== 'null' && $type->allowsNull()
72+
$atomicType->type !== 'mixed' && $atomicType->type !== 'null' && $type->allowsNull()
7373
);
7474
}
7575

0 commit comments

Comments
 (0)