src/IntMath.php
/**
     * Asserts the specified value is an integer.
     *
     * @param mixed $value The value to assert.
     *
     * @throws InvalidArgumentException If the value is not an integer.
     */
Asserts the specified value is an integer.
@param mixed $value The value to assert.

@throws InvalidArgumentException If the value is not an integer.
Asserts the specified value is an integer . @param mixed $value The value to assert . @throws InvalidArgumentException If the value is not an integer .
private static function assertInteger($value)
    {
        if (\is_int($value)) {
            return;
        }
        throw new InvalidArgumentException(\sprintf(
            'Expected an integer, but got "%s"',
            self::identify($value)
        ));
    }
private static function assertInteger ( $ value ) { if ( \ is_int ( $ value ) ) { return ; } throw new InvalidArgumentException ( \ sprintf ( 'Expected an integer, but got "%s"' , self :: identify ( $ value ) ) ) ; }
Asserts the specified value is an integer.
Asserts the specified value is an integer .