You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Prepared SQL queries with INSERT INTO ... VALUES ... filled with the correct number of placeholders using the syntax commonly used for queries with IN(...) clauses (implode() + array_fill()) emit a warning.
Incorrect number of replacements passed to $wpdb->prepare().
Found 1 replacement parameters, expected 0.
(WordPress.DB.PreparedSQLPlaceholders.ReplacementsWrongNumber)
Environment
Question
Answer
PHP version
8.0.28
PHP_CodeSniffer version
3.10.3
WordPressCS version
3.1.0
PHPCSUtils version
1.0.12
PHPCSExtra version
1.2.1
WordPressCS install type
Composer project local
Additional Context (optional)
Tested Against develop Branch?
I have verified the issue still exists in the develop branch of WordPressCS.
The text was updated successfully, but these errors were encountered:
Bug Description
Prepared SQL queries with
INSERT INTO ... VALUES ...
filled with the correct number of placeholders using the syntax commonly used for queries withIN(...)
clauses (implode()
+array_fill()
) emit a warning.Minimal Code Snippet
The issue happens when running this command:
... over a file containing this code:
Error Code
Environment
Additional Context (optional)
Tested Against
develop
Branch?develop
branch of WordPressCS.The text was updated successfully, but these errors were encountered: