It seems like $value can also be of type array; however, parameter $haystack of strpos() does only seem to accept string, maybe add an additional type check?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
44
if (strpos(/** @scrutinizer ignore-type */ $value, '/1') !== false) {
It seems like you are loosely comparing $value of type string to the boolean true. If you are specifically checking for a non-empty string, consider using the more explicit !== '' instead.