我在 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"
白猪掌柜的
LEATH