Skip to content

Commit 387a425

Browse files
committed
ACP2E-4128: [CLOUD] Getting 404 for JS file on checkout page on first attempt after implementing sri patch
1 parent 3cfbd53 commit 387a425

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

app/code/Magento/Csp/Plugin/GenerateAssetIntegrity.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ public function __construct(
6767
*/
6868
public function afterCreateRequireJsConfigAsset(
6969
FileManager $subject,
70-
File $result
71-
): File {
70+
mixed $result
71+
): mixed {
7272
if (PHP_SAPI == 'cli') {
7373
if (in_array($result->getContentType(), self::CONTENT_TYPES)) {
7474
$integrity = $this->integrityFactory->create(
@@ -116,14 +116,14 @@ public function afterCreateRequireJsMixinsAsset(
116116
* @param FileManager $subject
117117
* @param File|false $result
118118
*
119-
* @return File
119+
* @return File|false
120120
*
121121
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
122122
*/
123123
public function afterCreateStaticJsAsset(
124124
FileManager $subject,
125-
File|false $result
126-
): File {
125+
$result
126+
): false|File {
127127
if ($result !== false && PHP_SAPI === 'cli') {
128128
$this->generateHash($result);
129129
}

0 commit comments

Comments
 (0)