Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix generating null return type from reflection in TypeGenerator #186

Merged
merged 1 commit into from
Oct 25, 2024

Conversation

robertlemke
Copy link
Contributor

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

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.
@gsteel gsteel changed the base branch from 4.12.x to 4.15.x October 25, 2024 10:10
@gsteel gsteel added this to the 4.15.1 milestone Oct 25, 2024
@gsteel gsteel added the Bug Something isn't working label Oct 25, 2024
@gsteel gsteel self-assigned this Oct 25, 2024
@gsteel gsteel merged commit 877ad42 into laminas:4.15.x Oct 25, 2024
@gsteel
Copy link
Member

gsteel commented Oct 25, 2024

Thank you @robertlemke :)

@robertlemke robertlemke deleted the issue-185 branch October 25, 2024 10:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TypeGenerator fails with type "null" cannot be nullable
3 participants