- Issue created by @drwilliamhobbs
- First commit to issue fork.
- 🇺🇸United States mark_fullmer Tucson
Based on the analysis below and functional testing, this should be ready to merge and a new 8.x-1.7 release provided with Drupal 11 compatibility
Auditor checklist
[x] Deprecated Drupal code is remediated -- no deprecations found using Rector or Upgrade Status, or
[x] Deprecated PHP code is remediated -- change, noted below.
[x] Custom code is compatible with jQuery 4 -- none present
[x] Custom code core_version_requirement indicates Drupal 11 compatibility
[x] This module's composer.json file does not require any changes for Drupal 11 compatibility
[x] I updated the GitlabCI file to run Functional tests against both Drupal 10 and Drupal 11.
[x] Existing functional tests pass on Drupal 10 and Drupal 11Drupal-Rector Audit of Drupal deprecations
1 file with changes
===================1) web/modules/contrib/protected_pages/src/EventSubscriber/ProtectedPagesSubscriber.php:134 ---------- begin diff ---------- @@ @@ /** * {@inheritdoc} */ - public static function getSubscribedEvents() { + public static function getSubscribedEvents(): array { $events[KernelEvents::RESPONSE][] = ['checkProtectedPage']; return $events; } ----------- end diff ----------- Applied rules: * ProtectedStaticModulesPropertyRector * AddReturnTypeDeclarationRector [OK] 1 file would have been changed (dry-run) by Rector Audit of deprecated PHP <8.3 calls If no errors are listed below, php-compatibility did not find any. .......... 10 / 10 (100%)
- 🇺🇸United States mmarler
I'm getting a fatal error in Drupal 11.0.9 when the workspaces module is enabled:
TypeError: Drupal\protected_pages\EventSubscriber\ProtectedPagesSubscriber::__construct(): Argument #1 ($aliasManager) must be of type Drupal\path_alias\AliasManager, Drupal\workspaces\WorkspacesAliasManager given, called in /app/web/core/lib/Drupal/Component/DependencyInjection/Container.php on line 259 in Drupal\protected_pages\EventSubscriber\ProtectedPagesSubscriber->__construct() (line 91 of /app/web/modules/contrib/protected_pages/src/EventSubscriber/ProtectedPagesSubscriber.php).
- 🇺🇸United States mmarler
I'll apply the patch here: https://www.drupal.org/project/protected_pages/issues/3456307 🐛 Workspaces Incompatibility RTBC
- First commit to issue fork.
- 🇺🇸United States mark_fullmer Tucson
Is it possible to get an Updated-Zipfile?
I think the best way to go about getting a "download" of this would be to use Git to clone the issue fork & branch (see the "Show commands" expandable near the top of this issue).
- 🇮🇳India patelh84
The #MR32 works for both Drupal 10 and Drupal 11. Attaching the upgrade status screenshot for reference. Moving the issue to RTBC.
- First commit to issue fork.
-
oksana-c →
committed bd3490e1 on 8.x-1.x authored by
mark_fullmer →
Issue #3485965 by mmarler, mark_fullmer, patelh84, cchiste, oksana-c:...
-
oksana-c →
committed bd3490e1 on 8.x-1.x authored by
mark_fullmer →