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

Open
robertlemke opened this issue Jun 7, 2023 · 0 comments · May be fixed by #186
Open

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

robertlemke opened this issue Jun 7, 2023 · 0 comments · May be fixed by #186
Labels
Bug Something isn't working

Comments

@robertlemke
Copy link

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

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.

1 participant