laminas-code
laminas-code copied to clipboard
Fix generating null return type from reflection in TypeGenerator
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