refactoring: fix panic when empty return type
This commit is contained in:
Generated
+1
-1
@@ -4393,7 +4393,7 @@ yydefault:
|
|||||||
yyDollar = yyS[yypt-0 : yypt+1]
|
yyDollar = yyS[yypt-0 : yypt+1]
|
||||||
// line internal/php7/php7.y:1995
|
// line internal/php7/php7.y:1995
|
||||||
{
|
{
|
||||||
yyVAL.node = nil
|
yyVAL.node = &ast.ReturnType{}
|
||||||
}
|
}
|
||||||
case 227:
|
case 227:
|
||||||
yyDollar = yyS[yypt-2 : yypt+1]
|
yyDollar = yyS[yypt-2 : yypt+1]
|
||||||
|
|||||||
@@ -1993,7 +1993,7 @@ type:
|
|||||||
return_type:
|
return_type:
|
||||||
/* empty */
|
/* empty */
|
||||||
{
|
{
|
||||||
$$ = nil
|
$$ = &ast.ReturnType{}
|
||||||
}
|
}
|
||||||
| ':' type_expr
|
| ':' type_expr
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user