Skip to content

Comments

Fix deprecation notice for passing null to preg_replace#39

Merged
pocketarc merged 1 commit intopocketarc:developfrom
kissit:develop
Feb 22, 2026
Merged

Fix deprecation notice for passing null to preg_replace#39
pocketarc merged 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.

@pocketarc pocketarc merged commit a87d76d into pocketarc:develop Feb 22, 2026
114 of 120 checks passed
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.

2 participants