![]() |
str_replace(): Argument #3 ($subject) must be of type array|string, int given - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=31) +--- Thread: str_replace(): Argument #3 ($subject) must be of type array|string, int given (/showthread.php?tid=90996) |
str_replace(): Argument #3 ($subject) must be of type array|string, int given - warcooft - 06-02-2024 Hi everyone, im using number helper and implement number_to_amount() method then i faced data type error as follows: ![]() when I try to give number with string data type this method works normally, PHP Code: number_to_amount($model->countAll(), 2, 'id'); // error: ($subject) must be of type array|string, int given in previous version 4.4.8 there was no such problem. RE: str_replace(): Argument #3 ($subject) must be of type array|string, int given - kenjis - 06-02-2024 This is a bug. https://github.com/codeigniter4/CodeIgniter4/pull/8932 RE: str_replace(): Argument #3 ($subject) must be of type array|string, int given - warcooft - 06-02-2024 (06-02-2024, 02:09 AM)kenjis Wrote: This is a bug. Thanks @kenjis |