The return value of `mb_strpos` needs to be checked type-safely, as both `0`
and `false` are falsy. In this case this likely was safe, as the inner join may
not appear at the start of the query, it was a questionable nonetheless.
Fix this by using `str_contains()` which makes the intent even clearer.
" . ($additionalConditions[$objectTypeName] ?? '');
}
- if (\mb_strpos($query, '{WCF_SEARCH_INNER_JOIN}')) {
+ if (\str_contains($query, '{WCF_SEARCH_INNER_JOIN}')) {
$innerJoin = $this->getInnerJoin(
$objectTypeName,
$q,