Changes for core/lib/Drupal/Core/Database/StatementEmpty.php: 7 added lines, 0 removed lines.
Original line number
Diff line number
Diff line
@@ -2,6 +2,8 @@
namespaceDrupal\Core\Database;
@trigger_error('\Drupal\Core\Database\StatementEmpty is deprecated in drupal:9.2.0 and is removed from drupal:10.0.0. There is no replacement. Use mocked StatementInterface classes in tests if needed. See https://www.drupal.org/node/3201283',E_USER_DEPRECATED);
/**
* Empty implementation of a database statement.
*
@@ -12,6 +14,11 @@
* result set that happens to contain no records.
*
* @see \Drupal\search\SearchQuery
*
* @deprecated in drupal:9.2.0 and is removed from drupal:10.0.0. There is no
* replacement. Use mocked StatementInterface classes in tests if needed.
Changes for core/tests/Drupal/Tests/Core/Database/EmptyStatementTest.php: 3 added lines, 0 removed lines.
Original line number
Diff line number
Diff line
@@ -15,8 +15,11 @@ class EmptyStatementTest extends UnitTestCase {
/**
* Tests that the empty result set behaves as empty.
*
* @group legacy
*/
publicfunctiontestEmpty(){
$this->expectDeprecation('\Drupal\Core\Database\StatementEmpty is deprecated in drupal:9.2.0 and is removed from drupal:10.0.0. There is no replacement. Use mocked StatementInterface classes in tests if needed. See https://www.drupal.org/node/3201283');