Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated "Zend/Db/Statement.php" #437

Open
batrox opened this issue Sep 5, 2024 · 1 comment

Comments

@batrox
Copy link

batrox commented Sep 5, 2024

On php 8:

File: Zend/Db/Statement.php
Line: 212

replace
$sql = preg_replace("/$d($de|\\\\{2}|[^$d])*$d/Us", '', $sql);
by
$sql = preg_replace("/$d($de|\\\\{2}|[^$d])*$d/Us", '', (string) $sql);
to fix deprecated notice

@addison74
Copy link

You can create a PR to solve the reported problem.

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

No branches or pull requests

2 participants