phf/varinfo

Description of variables e.g. for exception messages

Installs: 177

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/phf/varinfo

v1.0.0 2021-05-05 17:51 UTC

This package is auto-updated.

Last update: 2025-10-06 04:00:04 UTC


README

DRY helper for describing variables

if (!\is_numeric($foo)) {
    throw new InvalidArgumentException(\sprintf(
        'Expected numeric - %s given',
        new PhF\Varinfo\Varinfo($foo)
    ));
}