src/Validators.php
public static function number($val, $min = null, $max = null, $flags = 0): bool
    {
        if (!\is_numeric($val)) {
            return false;
        }

        if ($val <= 0) {
            return false;
        }

        return self::integer($val, $min, $max, $flags);
    }
public static function number($val, $min = null, $max = null, $flags = 0): bool
    {
        if (!\is_numeric($val)) {
            return false;
        }

        if ($val <= 0) {
            return false;
        }

        return self::integer($val, $min, $max, $flags);
    }
public static function number ( $ val , $ min = null , $ max = null , $ flags = 0 ) : bool { if ( ! \ is_numeric ( $ val ) ) { return false ; } if ( $ val <= 0 ) { return false ; } return self :: integer ( $ val , $ min , $ max , $ flags ) ; }
check var is a integer and greater than 0
@param mixed         $val
@param  null|integer $min 最小值
@param  null|int     $max 最大值
@param int           $flags
@return bool
check var is a integer and greater than 0