think-orm icon indicating copy to clipboard operation
think-orm copied to clipboard

2.0版本里的问题,substr_replace要求传入的要保存的数组里每个成员都是字符串

Open wdwlrz opened this issue 2 years ago • 1 comments

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类型,不是字符串

wdwlrz avatar Apr 28 '23 01:04 wdwlrz

是不是因为我用的php程序是8.1的php的问题

wdwlrz avatar Apr 28 '23 02:04 wdwlrz