refactoring: fix panic when empty return type

This commit is contained in:
Vadym Slizov 2020-12-04 22:13:12 +02:00
parent 40b944a272
commit 997f7bc6e4
No known key found for this signature in database
GPG Key ID: AEA2A9388EF42A4A
3 changed files with 1015 additions and 1015 deletions

2
internal/php7/php7.go generated
View File

@ -4393,7 +4393,7 @@ yydefault:
yyDollar = yyS[yypt-0 : yypt+1]
// line internal/php7/php7.y:1995
{
yyVAL.node = nil
yyVAL.node = &ast.ReturnType{}
}
case 227:
yyDollar = yyS[yypt-2 : yypt+1]

View File

@ -1993,7 +1993,7 @@ type:
return_type:
/* empty */
{
$$ = nil
$$ = &ast.ReturnType{}
}
| ':' type_expr
{