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 b722fca commit 764c577Copy full SHA for 764c577
app/code/Magento/Theme/Controller/Result/AsyncCssPlugin.php
@@ -41,7 +41,7 @@ public function beforeSendResponse(Http $subject)
41
{
42
$content = $subject->getContent();
43
44
- if (strpos($content, '</body') !== false && $this->scopeConfig->isSetFlag(
+ if (\is_string($content) && strpos($content, '</body') !== false && $this->scopeConfig->isSetFlag(
45
self::XML_PATH_USE_CSS_CRITICAL_PATH,
46
ScopeInterface::SCOPE_STORE
47
)) {
0 commit comments