Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
* Copyright 2025 Adobe
* All Rights Reserved.
*/
declare(strict_types=1);

Expand Down Expand Up @@ -35,6 +35,10 @@ public function __construct(Session $session)
*/
public function execute(): int
{
return (int)$this->session->getLoggedAsCustomerAdmindId();
return (int)(
$this->session->getLoggedAsCustomerAdminId()
// This typo is kept for backward compatibility. Should be removed on Magento 2.5
?? $this->session->getLoggedAsCustomerAdmindId()
);
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
* Copyright 2025 Adobe
* All Rights Reserved.
*/
declare(strict_types=1);

Expand Down Expand Up @@ -35,6 +35,6 @@ public function __construct(Session $session)
*/
public function execute(int $adminId): void
{
$this->session->setLoggedAsCustomerAdmindId($adminId);
$this->session->setLoggedAsCustomerAdminId($adminId);
}
}
9 changes: 4 additions & 5 deletions lib/internal/Magento/Framework/App/ScopeResolver.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
* Copyright 2025 Adobe
* All Rights Reserved.
*/
namespace Magento\Framework\App;

Expand All @@ -10,7 +10,7 @@
class ScopeResolver implements ScopeResolverInterface
{
/**
* @var \Magento\Store\Model\StoreManagerInterface
* @var ObjectManagerInterface
*/
protected $objectManager;

Expand All @@ -30,8 +30,7 @@ public function __construct(ObjectManagerInterface $objectManager)
}

/**
* {@inheritdoc}
* @return ScopeDefault
* @inheritdoc
*/
public function getScope($scopeId = null)
{
Expand Down