解决报错Too few arguments to function thinkValidate::is(), 1 passed and at least 2 expected

Posted 2019ab

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了解决报错Too few arguments to function thinkValidate::is(), 1 passed and at least 2 expected相关的知识,希望对你有一定的参考价值。

这种报错,提示是缺少两个参数;

原因是没有使用自己创建的BaseValidate.php ,解决办法

use app\\common\\validate\\BaseValidate;

//并且
class SearchValidate extends BaseValidate
{
   ......
}

以上是关于解决报错Too few arguments to function thinkValidate::is(), 1 passed and at least 2 expected的主要内容,如果未能解决你的问题,请参考以下文章

caffe在进行图片数据转化的时候报错create_annoset.py: error: too few arguments

Windows pytesseract image_to_osd Invalid resolution 0 dpi. Using 70 instead. Too few characters报错及解决

安装PHP sphinx扩展 sphinx-1.1.0/sphinx.c:105:2: error: too few arguments 错误

objc_msgSend()报错Too many arguments to function call ,expected 0,have3

Xcode报错Xcode导入runtime框架函数参数没有提示或Too many arguments to function call, expected 0, have 2错误

Too many arguments provided to function-like macro invocation 或