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 1 additions and 1 deletions

BIN
internal/php5/php5.go generated

Binary file not shown.

BIN
internal/php7/php7.go generated

Binary file not shown.

View File

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