Gauge::set() accepts mixed but only int/float are valid.
In 1.x, non-int/float values trigger an E_USER_DEPRECATED notice but are still stored (BC preserved).
In 2.0.0, narrow the $value type to int|float (throwing \TypeError for invalid types) and remove the runtime guard. This is a BC break, deferred to the next major release.
Gauge::set()acceptsmixedbut onlyint/floatare valid.In 1.x, non-int/float values trigger an
E_USER_DEPRECATEDnotice but are still stored (BC preserved).In 2.0.0, narrow the
$valuetype toint|float(throwing\TypeErrorfor invalid types) and remove the runtime guard. This is a BC break, deferred to the next major release.