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

TypeGenerator fails with type "null" cannot be nullable

Open robertlemke opened this issue 2 years ago • 0 comments

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

robertlemke avatar Jun 07 '23 10:06 robertlemke