refactoring: fix panic when empty return type
This commit is contained in:
parent
40b944a272
commit
997f7bc6e4
BIN
internal/php5/php5.go
generated
BIN
internal/php5/php5.go
generated
Binary file not shown.
BIN
internal/php7/php7.go
generated
BIN
internal/php7/php7.go
generated
Binary file not shown.
@ -1993,7 +1993,7 @@ type:
|
||||
return_type:
|
||||
/* empty */
|
||||
{
|
||||
$$ = nil
|
||||
$$ = &ast.ReturnType{}
|
||||
}
|
||||
| ':' type_expr
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user