laminas-code icon indicating copy to clipboard operation
laminas-code copied to clipboard

Fix generating null return type from reflection in TypeGenerator

Open robertlemke opened this issue 2 years ago • 0 comments

The TypeGenerator failed with "type 'null' cannot be nullable" when fromReflectionType() was called for a method with a return type "null" due to a incorrect comparison with the string "null". This change corrects the comparison so that such methods are reflected without errors.

Obvious fix.

Resolves: #185

robertlemke avatar Jun 07 '23 10:06 robertlemke