Skip to content

Commit fab3b6b

Browse files
committed
Merge branch 'AC-9831' into cia-2.4.7-beta3-develop-bugfix-11302023
2 parents 2ab1ad6 + fe6cc2a commit fab3b6b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

lib/internal/Magento/Framework/View/Element/AbstractBlock.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1055,6 +1055,7 @@ public function getCacheKey()
10551055
)
10561056
);
10571057
}
1058+
10581059
return static::CUSTOM_CACHE_KEY_PREFIX . $this->getData('cache_key');
10591060
}
10601061

lib/internal/Magento/Framework/View/Test/Unit/Element/AbstractBlockTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,10 +244,11 @@ public function testGetCacheKey()
244244
}
245245

246246
/**
247+
* Test for invalid cacheKey name
247248
* @return void
248249
* @throws LocalizedException
249250
*/
250-
public function testGetCacheKeyFail()
251+
public function testGetCacheKeyFail(): void
251252
{
252253
$cacheKey = "test&''Key";
253254
$this->block->setData('cache_key', $cacheKey);

0 commit comments

Comments
 (0)