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

Fix db_query.php expected test. #268

Merged
merged 1 commit into from
Nov 13, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion fixtures/d8/rector_examples_updated/db_query.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php

use Drupal\core\Database\Database;
/**
* This demonstrates the deprecated static calls that might be called from procedural code like `.module` files.
*/
Expand All @@ -26,7 +27,7 @@ function placeholder() {
* An example using arguments and options.
*/
function arguments_and_options() {
\Drupal\core\Database\Database::getConnection('my_non_default_database')->query('select * from user where name="%test"', ['%test'=>'Adam'], [
Database::getConnection('my_non_default_database')->query('select * from user where name="%test"', ['%test'=>'Adam'], [
'fetch' => \PDO::FETCH_OBJ,
'return' => Database::RETURN_STATEMENT,
'throw_exception' => TRUE,
Expand Down