Wixel / GUMP

A fast, extensible & stand-alone PHP input validation class that allows you to validate any data
https://wixelhq.com
MIT License
1.17k stars 341 forks source link

DEPRECATED REQUIRED PARAM AFTER OPTIONAL #344

Open yourjhay opened 1 year ago

yourjhay commented 1 year ago

This will trigger a deprecation error

protected function validate_required($field, array $input, array $params = [], $value)
    {
        return isset($value) && !self::is_empty($value);
    }

https://php.watch/versions/8.0/deprecate-required-param-after-optional