Skip to content

Commit 65308b5

Browse files
committed
MC-15763: Introduce critical CSS scope loaded through head
- Stabilization
1 parent 2eed649 commit 65308b5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/internal/Magento/Framework/View/Asset/MergeService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public function getMergedAssets(array $assets, $contentType)
8787
{
8888
$isCss = $contentType == 'css';
8989
$isJs = $contentType == 'js';
90-
if (!in_array($contentType, self::SUPPORTED_MERGE_TYPE)) {
90+
if (!in_array($contentType, self::SUPPORTED_MERGE_TYPE, true)) {
9191
throw new \InvalidArgumentException("Merge for content type '{$contentType}' is not supported.");
9292
}
9393

lib/internal/Magento/Framework/View/Page/Config/Renderer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ protected function renderAssetHtml(\Magento\Framework\View\Asset\PropertyGroup $
425425
*/
426426
private function canTypeBeFont(string $type): bool
427427
{
428-
return in_array($type, self::FONTS_TYPE);
428+
return in_array($type, self::FONTS_TYPE, true);
429429
}
430430

431431
/**

0 commit comments

Comments
 (0)