Security update for Core, with self-updated composer
[yaffs-website] / web / core / modules / system / src / Tests / Database / FakeRecord.php
index fce136684ee85c1aaabad91062344e66c5c098d8..375e60f2440ab8374e5ae5924729e82770559429 100644 (file)
@@ -2,11 +2,16 @@
 
 namespace Drupal\system\Tests\Database;
 
+@trigger_error(__NAMESPACE__ . '\FakeRecord is deprecated in Drupal 8.4.0 and will be removed before Drupal 9.0.0. Instead, use \Drupal\Tests\system\Functional\Database\FakeRecord', E_USER_DEPRECATED);
+
 /**
  * Fetches into a class.
  *
  * PDO supports using a new instance of an arbitrary class for records
  * rather than just a stdClass or array. This class is for testing that
  * functionality. (See testQueryFetchClass() below)
+ *
+ * @deprecated in Drupal 8.4.0 and will be removed before Drupal 9.0.0. Instead
+ *   use \Drupal\Tests\system\Functional\Database\FakeRecord.
  */
-class FakeRecord { }
+class FakeRecord {}