original_string: 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);
      }
code: 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);
      }
code_tokens: 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 ) ; }
docstring: 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.
docstring_tokens: Runs an user - defined validation .