MIR1008
DeprecatedConstant
A constant annotated with @deprecated is being referenced. Deprecated constants are scheduled
for removal and should not be used in new code.
Example
Section titled “Example”<?phpclass Status { /** * @deprecated Use Status::ACTIVE instead. */ public const ENABLED = 1;
public const ACTIVE = 1;}
echo Status::ENABLED; // deprecated constantHow to fix
Section titled “How to fix”Use the replacement constant indicated in the @deprecated message.