Skip to content

Commit 9fef293

Browse files
authored
scopeCode can be null
1 parent 56eac3e commit 9fef293

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/internal/Magento/Framework/Interception/PluginListGenerator.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,11 +193,12 @@ private function getClassDefinitions(): array
193193
/**
194194
* Whether scope code is current scope code
195195
*
196-
* @param string $scopeCode
196+
* @param string|null $scopeCode
197197
* @return bool
198198
*/
199-
private function isCurrentScope(string $scopeCode): bool
199+
private function isCurrentScope(?string $scopeCode): bool
200200
{
201+
// ToDo: $scopeCode can be null in integration tests because of how scope is reset.
201202
return $this->scopeConfig->getCurrentScope() === $scopeCode;
202203
}
203204

0 commit comments

Comments
 (0)