When wanting to override a core rule just specify the rule name as $name.
Eg, 'required', 'minLength'. Note the lowercase first letter.
The name of the rule should not contain any whitespace or special characters as the name will be available
to use as a function name in the method chaining syntax.
public addCustomRule ( string $name, string $class ) | ||
$name | string | |
$class | string |