Skip to content
Snippets Groups Projects

Issue #3469734: Call to undefined method MetadataBag::getMasquerade() at MasqueradeCacheContext.php

Issue #3469734: Call to undefined method MetadataBag::getMasquerade() at MasqueradeCacheContext.php
1 unresolved thread
Open Mikhail Oleynik requested to merge issue/masquerade-3469734:8.x-2.x into 8.x-2.x
1 unresolved thread

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
28 29 if ($request = $this->requestStack->getCurrentRequest()) {
29 30 if ($request->hasSession() && ($bag = $request->getSession()->getMetadataBag())) {
30 31 /** @var \Drupal\masquerade\Session\MetadataBag $bag */
31 if ($bag->getMasquerade()) {
32 if ($bag instanceof MetadataBag && $bag->getMasquerade()) {
  • Suggested change
    31 /** @var \Drupal\masquerade\Session\MetadataBag $bag */
    32 if ($bag instanceof MetadataBag && $bag->getMasquerade()) {
    31 assert($bag instanceof MetadataBag, "Service session_manager.metadata_bag must be decorated");
    32 if ($bag->getMasquerade()) {
    Edited by Andrey Postnikov
  • Please register or sign in to reply
Please register or sign in to reply
Loading