Are you good at suppressing such an error?
It depends. Ignoring mistakes is never a good idea. Maintaining rigorous reporting is a good idea for the development phase. However, as soon as PHP informs you of this debugging message, you will evaluate it and substantiate the decision made.
You can either get around the problem mentioned, or fix it, or ignore it if it is not a problem.
Assigning an object by reference is not required and is now deprecated. However, this is not a problem that will lead to errors, and it will never be semantically prohibited. Removing syntax constructs in future versions will result in a compatibility violation, so this will not happen. In this case, a conscious choice is to confirm or ignore the syntax hint or remove & , since it is not needed, and deleting it in this particular instance is unlikely to violate the behavior.
mario source share