Skip to content

Commit

Permalink
Merge pull request #268 from palantirnet/fix/fix-tests-fqcn
Browse files Browse the repository at this point in the history
Fix db_query.php expected test.
  • Loading branch information
agentrickard authored Nov 13, 2023
2 parents bcd7329 + 278605f commit d75dfb9
Showing 1 changed file with 2 additions and 1 deletion.
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

0 comments on commit d75dfb9

Please sign in to comment.