think-orm
think-orm copied to clipboard
2.0版本里的问题,substr_replace要求传入的要保存的数组里每个成员都是字符串
Uncaught TypeError: substr_replace(): Argument #2 ($replace) must be of type array|string, int given in .\vendor\topthink\think-orm\src\db\Connection.php:1322
$new['status']='0'; // 这样才可以,但我库里定义的就是int类型,不是字符串
是不是因为我用的php程序是8.1的php的问题