Issue #3294680 by plopesc, marcoscano, makkus183: PHP8.1 deprecation: str_replace(): Passing null to parameter #3