From 0a15c5b8bc507e448294d73f8c9a7e3ca5dfc3cc Mon Sep 17 00:00:00 2001 From: catch <catch@35733.no-reply.drupal.org> Date: Tue, 30 Apr 2024 07:44:51 +0100 Subject: [PATCH] Issue #3411308 by stefan.korn, ndf, amateescu: WorkspaceSubscriber service parameter $workspaceAssociation must be optional (cherry picked from commit a60890d44d5fe94b6a97e07fecfbefc5da3ffca0) --- .../src/EventSubscriber/WorkspaceSubscriber.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/modules/content_moderation/src/EventSubscriber/WorkspaceSubscriber.php b/core/modules/content_moderation/src/EventSubscriber/WorkspaceSubscriber.php index ecd9ba3844d9..9e37f0097d7a 100644 --- a/core/modules/content_moderation/src/EventSubscriber/WorkspaceSubscriber.php +++ b/core/modules/content_moderation/src/EventSubscriber/WorkspaceSubscriber.php @@ -19,12 +19,12 @@ class WorkspaceSubscriber implements EventSubscriberInterface { * * @param \Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager * The entity type manager service. - * @param \Drupal\workspaces\WorkspaceAssociationInterface $workspaceAssociation + * @param \Drupal\workspaces\WorkspaceAssociationInterface|null $workspaceAssociation * The workspace association service. */ public function __construct( protected readonly EntityTypeManagerInterface $entityTypeManager, - protected readonly WorkspaceAssociationInterface $workspaceAssociation + protected readonly ?WorkspaceAssociationInterface $workspaceAssociation ) {} /** -- GitLab