PHP 8.1 deprecated passing null to parameter #3 when using str_replace(). str_repace() is commonly used among developers to replace the one word with another in the string. Example: which replaces [ with { in the string $value. Since 8.1, if
[Fix] str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated
![[Fix] str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated [Fix] str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated](https://sanjeebaryal.com.np/wp-content/uploads/2023/11/str_replace-passing-null-to-parameter-3-750x350.png)