You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Returning a value from __clone() is always a mistake, since the return value is never used. __clone is called on the newly created object before resolving a clone $obj expression.
Checking the return type of the method ought to be enough. No need to actually check the body for returns.
The text was updated successfully, but these errors were encountered:
For rationale, see facebook/hhvm#3757.
Returning a value from
__clone()
is always a mistake, since the return value is never used. __clone is called on the newly created object before resolving aclone $obj
expression.Checking the return type of the method ought to be enough. No need to actually check the body for returns.
The text was updated successfully, but these errors were encountered: