laminas-code
laminas-code copied to clipboard
TypeGenerator fails with type "null" cannot be nullable
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