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

TypeGenerator fails with type "null" cannot be nullable #185

Closed
robertlemke opened this issue Jun 7, 2023 · 1 comment · Fixed by #186
Closed

TypeGenerator fails with type "null" cannot be nullable #185

robertlemke opened this issue Jun 7, 2023 · 1 comment · Fixed by #186
Assignees
Labels
Bug Something isn't working
Milestone

Comments

@robertlemke
Copy link
Contributor

Bug Report

Q A
Version(s) 14.12.x

Summary

Consider the following method:

    public function alwaysNull(): null
    {
        return null;
    }

When I generate a method using MethodGenerator::copyMethodSignature(), the TypeGenerator fails with:

Type "null" cannot be nullable

@gsteel
Copy link
Member

gsteel commented Oct 25, 2024

Closed via #186

@gsteel gsteel closed this as completed Oct 25, 2024
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 a pull request may close this issue.

2 participants