public static function isIpV4Address($value): bool
    {
        if (!static::isStringCastable($value)) {
            return false;
        }

        return filter_var((string) $value, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4) !== false;
    }
public static function isIpV4Address($value): bool
    {
        if (!static::isStringCastable($value)) {
            return false;
        }

        return filter_var((string) $value, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4) !== false;
    }
public static function isIpV4Address ( $ value ) : bool { if ( ! static :: isStringCastable ( $ value ) ) { return false ; } return filter_var ( ( string ) $ value , FILTER_VALIDATE_IP , FILTER_FLAG_IPV4 ) !== false ; }
Checks if value is an IPv4 address

@param mixed $value The value

@return bool
Checks if value is an IPv4 address