JMSAopBundle icon indicating copy to clipboard operation
JMSAopBundle copied to clipboard

return void cases

Open 4n70w4 opened this issue 5 years ago • 1 comments

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 avatar Feb 14 '19 13:02 4n70w4

Oh, this for https://github.com/schmittjoh/cg-library related: https://github.com/schmittjoh/cg-library/issues/35

4n70w4 avatar Feb 14 '19 15:02 4n70w4