TP验证器阿里云镜像安装后报错.国外的安装不了.

27025011

composer require topthink/think-validate
截图

472 1 0
1个回答

Tinywan

用这个吧!差不多 https://www.workerman.net/plugin/7

  • 27025011 2024-01-23

    php8以上用不了,报错,不兼容

  • Tinywan 2024-01-23

    提示什么?

  • 27025011 2024-01-23

    Fatal error: Type of plugin\msg\app\validate\Msg::$rule must be array

  • 27025011 2024-01-23

    例子写的protected $rule ,实际在php8报错,需要改成protected array $rule ,改后又报场景错误.

  • Tinywan 2024-01-23

    可以提交个PR哈

×
🔝