Overly restrictive typehint causes error when Workspaces is enabled

Created on 2 September 2025, about 1 month ago

Problem/Motivation

TypeError: Drupal\cookiepro_plus\Utility\CookieProHelper::__construct(): Argument #2 ($aliasManager) must be of type Drupal\path_alias\AliasManager, Drupal\workspaces\WorkspacesAliasManager given

Steps to reproduce

1. Enable cookiepro_plus 1.1.0 on a Drupal 11 site
2. Enable Workspaces

Proposed resolution

The typehint should use the interface. See attached patch/MR

🐛 Bug report
Status

Active

Version

1.1

Component

Code

Created by

🇳🇿New Zealand fraserthompson Dunedin, New Zealand

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024