We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56eac3e commit 9fef293Copy full SHA for 9fef293
lib/internal/Magento/Framework/Interception/PluginListGenerator.php
@@ -193,11 +193,12 @@ private function getClassDefinitions(): array
193
/**
194
* Whether scope code is current scope code
195
*
196
- * @param string $scopeCode
+ * @param string|null $scopeCode
197
* @return bool
198
*/
199
- private function isCurrentScope(string $scopeCode): bool
+ private function isCurrentScope(?string $scopeCode): bool
200
{
201
+ // ToDo: $scopeCode can be null in integration tests because of how scope is reset.
202
return $this->scopeConfig->getCurrentScope() === $scopeCode;
203
}
204
0 commit comments