Skip to content

Fix deprecation notice for passing null to preg_replace#39

Open
kissit wants to merge 1 commit intopocketarc:developfrom
kissit:develop
Open

Fix deprecation notice for passing null to preg_replace#39
kissit wants to merge 1 commit intopocketarc:developfrom
kissit:develop

Conversation

@kissit
Copy link

@kissit kissit commented Feb 14, 2026

We've been seeing the following warning in our logs:

Severity: 8192 --> preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated /var/www/somoplatform/current/system/core/Common.php 730

This PR fixes the problem. For reference, the root cause is calling $this->security->xss_clean() passing either a null or an array that has one or more null values.

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.

1 participant