Since PHP 8.1, passing null to parameter #1 is deprecated. Example: when using strpos() to find the occurrence of the specific word in the string. In case of $value being null — the above deprecated message will appear. Fix: –
[Fix] strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated
![[Fix] strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated [Fix] strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated](https://sanjeebaryal.com.np/wp-content/uploads/2023/11/Passing-null-to-parameter-strpos-750x350.png)