From 5c29572403f78d9805c343de8d25095bc6639df8 Mon Sep 17 00:00:00 2001 From: catch <catch@35733.no-reply.drupal.org> Date: Mon, 10 Jul 2023 16:59:24 +0100 Subject: [PATCH] Revert "Issue #3358384 by Spokje, mondrake: Deprecate \Drupal\Tests\RandomGeneratorTrait::randomStringValidate" This reverts commit cfb55ae2a49f669ab9403b5bb674d18b1d07784f. --- core/tests/Drupal/Tests/RandomGeneratorTrait.php | 7 ------- 1 file changed, 7 deletions(-) diff --git a/core/tests/Drupal/Tests/RandomGeneratorTrait.php b/core/tests/Drupal/Tests/RandomGeneratorTrait.php index eccac674f1b4..b39bd7f29b7b 100644 --- a/core/tests/Drupal/Tests/RandomGeneratorTrait.php +++ b/core/tests/Drupal/Tests/RandomGeneratorTrait.php @@ -41,15 +41,8 @@ public function randomString($length = 8) { * * @return bool * TRUE if the random string is valid, FALSE if not. - * - * @deprecated in drupal:10.2.0 and is removed from drupal:11.0.0. - * Use \Drupal\TestTools\Random::stringValidate() instead. - * - * @see https://www.drupal.org/node/3358389 */ public function randomStringValidate($string) { - @trigger_error(__METHOD__ . "() is deprecated in drupal:10.2.0 and is removed from drupal:11.0.0. Use \Drupal\TestTools\Random::stringValidate() instead. See https://www.drupal.org/node/3358389", E_USER_DEPRECATED); - return Random::stringValidate($string); } -- GitLab