已弃用:strpos():非弦针将来将被解释为字符串
2022-08-30 17:40:17
我在 php 7.3 中出现了此错误
已弃用:strpos():非弦针将来将被解释为字符串。使用显式 chr() 调用来保留当前行为
该行是:
if ($this->Category->getPath() && strpos('_', $this->Category->getPath())) {
它似乎来自这个代码:strpos('_', $this->Category->getPath()
$this->Category->getPath()可以返回此值,例如:
int(8)
string(3) "8_9"