public static function userDefined($check, $object, $method, $args = null)
    {
        deprecationWarning(
            'Validation::userDefined() is deprecated. ' .
            'You can just set a callable for `rule` key when adding validators.'
        );

        return $object->$method($check, $args);
    }
public static function userDefined($check, $object, $method, $args = null)
    {
        deprecationWarning(
            'Validation::userDefined() is deprecated. ' .
            'You can just set a callable for `rule` key when adding validators.'
        );

        return $object->$method($check, $args);
    }
public static function userDefined ( $ check , $ object , $ method , $ args = null ) { deprecationWarning ( 'Validation::userDefined() is deprecated. ' . 'You can just set a callable for `rule` key when adding validators.' ) ; return $ object -> $ method ( $ check , $ args ) ; }
Runs an user-defined validation.

@param string|array $check value that will be validated in user-defined methods.
@param object $object class that holds validation method
@param string $method class method name for validation to run
@param array|null $args arguments to send to method
@return mixed user-defined class class method returns
@deprecated 3.0.2 You can just set a callable for `rule` key when adding validators.
Runs an user - defined validation .