MIR1701
ImpureMethodCall
A @pure function calls an impure method.
Example
Section titled “Example”<?php/** @pure */ function f(C $o){ $o->mutate(); }How to fix
Section titled “How to fix”Call only pure methods, or drop @pure.
MIR1701
A @pure function calls an impure method.
<?php/** @pure */ function f(C $o){ $o->mutate(); }Call only pure methods, or drop @pure.