function Assert::integerish
@psalm-pure @psalm-assert numeric $value
Parameters
mixed $value:
string $message:
Throws
1 call to Assert::integerish()
- Source::__construct in vendor/
phpdocumentor/ reflection-docblock/ src/ DocBlock/ Tags/ Source.php
File
-
vendor/
webmozart/ assert/ src/ Assert.php, line 99
Class
- Assert
- Efficient assertions to validate the input/output of your methods.
Namespace
Webmozart\AssertCode
public static function integerish($value, $message = '') {
if (!\is_numeric($value) || $value != (int) $value) {
static::reportInvalidArgument(\sprintf($message ?: 'Expected an integerish value. Got: %s', static::typeToString($value)));
}
}