From 2b7c0c8f94bb52241d77406a5d82a4e66d804c48 Mon Sep 17 00:00:00 2001 From: Janette Day Date: Thu, 30 Nov 2023 13:03:51 -0600 Subject: [PATCH] Switch from Drupal\Component\Uuid\Php to Drupal\Component\Uuid\UuidInterface (#4065) --- .../tests/src/Functional/DictionaryEnforcerTest.php | 2 +- modules/json_form_widget/src/WidgetRouter.php | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/datastore/tests/src/Functional/DictionaryEnforcerTest.php b/modules/datastore/tests/src/Functional/DictionaryEnforcerTest.php index 853068df67..7cfbe4e61c 100644 --- a/modules/datastore/tests/src/Functional/DictionaryEnforcerTest.php +++ b/modules/datastore/tests/src/Functional/DictionaryEnforcerTest.php @@ -78,7 +78,7 @@ class DictionaryEnforcerTest extends BrowserTestBase { /** * Uuid service. * - * @var \Drupal\Component\Uuid\Php + * @var \Drupal\Component\Uuid\UuidInterface */ protected $uuid; diff --git a/modules/json_form_widget/src/WidgetRouter.php b/modules/json_form_widget/src/WidgetRouter.php index d30ec7f51a..31e0f0b6c9 100644 --- a/modules/json_form_widget/src/WidgetRouter.php +++ b/modules/json_form_widget/src/WidgetRouter.php @@ -2,7 +2,7 @@ namespace Drupal\json_form_widget; -use Drupal\Component\Uuid\Php; +use Drupal\Component\Uuid\UuidInterface; use Drupal\Core\Datetime\DrupalDateTime; use Drupal\Core\DependencyInjection\ContainerInjectionInterface; use Drupal\metastore\MetastoreService; @@ -16,7 +16,7 @@ class WidgetRouter implements ContainerInjectionInterface { /** * Uuid Service. * - * @var \Drupal\Component\Uuid\Php + * @var \Drupal\Component\Uuid\UuidInterface */ protected $uuidService; @@ -50,14 +50,14 @@ public static function create(ContainerInterface $container) { /** * Constructor. * - * @param \Drupal\Component\Uuid\Php $uuid + * @param \Drupal\Component\Uuid\UuidInterface $uuid * Uuid service. * @param \Drupal\json_form_widget\StringHelper $string_helper * String Helper service. * @param \Drupal\metastore\MetastoreService $metastore * Metastore service. */ - public function __construct(Php $uuid, StringHelper $string_helper, MetastoreService $metastore) { + public function __construct(UuidInterface $uuid, StringHelper $string_helper, MetastoreService $metastore) { $this->uuidService = $uuid; $this->stringHelper = $string_helper; $this->metastore = $metastore;