在PHP8.4下启动webman2.1.1的时候会报错
/**
* 指定查询where条件,并没有真正的查询数据库操作
* @param array $where
* @param string|null $field
* @param string $order
* @return EloquentBuilder|QueryBuilder|Model
*/
protected function doSelect(array $where, string $field = null, string $order= 'desc')
{
public function __construct($phrase = null, PhraseBuilderInterface $builder = null)
1.ErrorException: plugin\admin\app\controller\Crud::doSelect(): Implicitly marking parameter $field as nullable is deprecated, the explicit nullable type must be used instead in D:\development\xinrong-admin\xinrong-mall\xrshop\plugin\admin\app\controller\Crud.php:131
2.Webman\Captcha\CaptchaBuilder::__construct(): Implicitly marking parameter $builder as nullable is deprecated, the explicit nullable type must be used instead
windows11 \ PHP8.4 webman 2.1.1
需要把参数 string $field = null 改为 ?string $field = null
官方目前只推荐用8.3版本呢
嗯,这个目前也只是测试下看看,提早发现问题