Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wdwlrz opened this issue Apr 28, 2023 · 1 comment

Comments

@wdwlrz
Copy link

wdwlrz commented Apr 28, 2023

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
Copy link
Author

wdwlrz commented Apr 28, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant