Skip to content
Snippets Groups Projects

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

Open 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

Members who can merge are allowed to add commits.
Approval is optional
Code Quality is loading
Test summary results are being parsed
Ready to merge by members who can write to the target branch.
  • 1 commit will be added to 8.x-2.x.
  • Source branch will not be deleted.

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