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)
![[Fix] Creation of dynamic property is deprecated since PHP 8.2 [Fix] Creation of dynamic property is deprecated since PHP 8.2](https://sanjeebaryal.com.np/wp-content/uploads/2023/08/Creation-of-dynamic-property-750x350.png)
![[Fix] deprecated: Required parameter follows optional parameter [Fix] deprecated: Required parameter follows optional parameter](https://sanjeebaryal.com.np/wp-content/uploads/2023/01/Required-Parameter-followed-by-optional-parameter-750x350.png)