is_numeric

Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Finds whether a variable is a number or a numeric string
<?php is_numeric(mixed $value): bool
<?php             $operator = $version[0];

            $version = substr($version, 1);


        } elseif (is_numeric($version[0])) {

            $operator = '==';

        } else {

            throw new InvalidArgumentException('The version must start with [<, >, <=, >=] or a number.');
<?php expect()->intercept('toBe', fn ($value, $expected) => $value === '*' && is_numeric($expected), function ($expected) use ($state) {

    $state->runCount['wildcard']++;

    $state->appliedCount['wildcard']++;

});