Remember me

Deprecated str_repalce

10 months 3 weeks ago #1

  • Yiorgos's Avatar
  • Yiorgos
  • Posts: 13
PHP Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/xxx/ on line 201

Can you fix that? its a simple fix like putting $var ?? '' instead of $var only.
More specific $value = str_replace($ind, ($shortCode??''), $value);
I would apriciate that because it fills the log on every page call for no reason.
I fixed that in my version by directly changing it in file but in next update it will again be tha same.
i use php 8.1 and joomla 4.

Thanks a lot!
Powered by Kunena Forum