MIR1702
ImpureGlobalVariable
A @pure function reads or writes a global variable.
Example
Section titled “Example”<?php/** @pure */ function f(){ global $g; return $g; }How to fix
Section titled “How to fix”Pass the value as a parameter, or drop @pure.