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 #35

Open
4n70w4 opened this issue Feb 14, 2019 · 0 comments · May be fixed by #38
Open

return void cases #35

4n70w4 opened this issue Feb 14, 2019 · 0 comments · May be fixed by #38

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.

related: schmittjoh/JMSAopBundle#50

4n70w4 added a commit to SymfonyRotEbal/cg-library that referenced this issue Feb 14, 2019
4n70w4 added a commit to SymfonyRotEbal/cg-library that referenced this issue Feb 14, 2019
@igorbga igorbga linked a pull request Jan 9, 2020 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant