Skip to content

Commit

Permalink
Merge pull request #186 from robertlemke/issue-185
Browse files Browse the repository at this point in the history
Fix generating null return type from reflection in TypeGenerator
  • Loading branch information
gsteel authored Oct 25, 2024
2 parents ff65d02 + 156b60f commit 877ad42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Generator/TypeGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public static function fromReflectionType(

return new self(
$atomicType,
$atomicType->type !== 'mixed' && $atomicType !== 'null' && $type->allowsNull()
$atomicType->type !== 'mixed' && $atomicType->type !== 'null' && $type->allowsNull()
);
}

Expand Down

0 comments on commit 877ad42

Please sign in to comment.