Skip to content

Conversation

@robinsowell
Copy link
Contributor

php 8.3

Deprecated
str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated ee/legacy/libraries/Template.php, line 544
Severity: E_DEPRECATED
Deprecated
str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated ee/legacy/libraries/Template.php, line 545
Severity: E_DEPRECATED

So if anon and it didn't meet the isset() check, it wasn't returning so you ended up with a null which throws the deprecation in template.php.

php 8.3

Deprecated
str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated
ee/legacy/libraries/Template.php, line 544
Severity: E_DEPRECATED
Deprecated
str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated
ee/legacy/libraries/Template.php, line 545
Severity: E_DEPRECATED

So if anon and it didn't meet the isset() check, it wasn't returning so you ended up with a null which throws the deprecation in template.php.
@TomJaeger TomJaeger added this to the 7.5.18 milestone Nov 26, 2025
@TomJaeger TomJaeger merged commit f7966e6 into 7.dev Dec 2, 2025
36 of 37 checks passed
@TomJaeger TomJaeger deleted the bugfix/php-deprecation-consent-check branch December 2, 2025 21:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants