public static function integerish($value, $message = null, $propertyPath = null)
{
if (is_object($value) || strval(intval($value)) != $value || is_bool($value) || is_null($value)) {
$message = sprintf($message ?: 'Value "%s" is not an integer or a number castable to integer.', static::stringify($value));
throw static::createException($value, $message, static::INVALID_INTEGERISH, $propertyPath);
}
return true;
}