Skip to content

Enforce int|float value type in Gauge::set() (deprecate mixed) #14

Description

@kimpepper

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions