title: Deprecated: strpos(): Non-string needles will be interpreted as strings in the future
body: <p>I have this error appear in php 7.3</p>
  
  <blockquote>
    <p>Deprecated: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior</p>
  </blockquote>
  
  <p>The line is :</p>
  
  <pre><code>if ($this-&gt;Category-&gt;getPath() &amp;&amp; strpos('_', $this-&gt;Category-&gt;getPath())) {
  </code></pre>
  
  <p>It seems it come from this code : <code>strpos('_', $this-&gt;Category-&gt;getPath()</code></p>
  
  <p><code>$this-&gt;Category-&gt;getPath()</code> can return this value for example :</p>
  
  <pre><code>int(8)  
  string(3) "8_9"
  </code></pre>