Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

return void cases #50

Open
4n70w4 opened this issue Feb 14, 2019 · 1 comment
Open

return void cases #50

4n70w4 opened this issue Feb 14, 2019 · 1 comment

Comments

@4n70w4
Copy link

4n70w4 commented Feb 14, 2019

Compile Error: Scalar type declaration 'void' must be unqualified

because generated excess \ in enhanced proxy class

public function setHashForUser($user): \void for origin method:
public function setHashForUser($user) : void {

Okay, I manually remove \ but exception again:

Compile Error: A void function must not return a value

because gererated code return $invocation->proceed(); incorrect for void functions.

Need remove return operator.

@4n70w4
Copy link
Author

4n70w4 commented Feb 14, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant