Skip to content

Commit 5476251

Browse files
Fix static test failures
1 parent 8b49e47 commit 5476251

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/internal/Magento/Framework/View/Layout.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,10 @@ class Layout extends \Magento\Framework\Simplexml\Config implements \Magento\Fra
196196

197197
/**
198198
* Property used to cache the results of the isCacheable() method.
199+
*
200+
* @var bool|null
199201
*/
200-
private bool|null $isCacheableCache = null;
202+
private ?bool $isCacheableCache = null;
201203

202204
/**
203205
* @param ProcessorFactory $processorFactory
@@ -1172,7 +1174,7 @@ protected function _prepareMessageGroup($messageGroups)
11721174
*/
11731175
public function isCacheable()
11741176
{
1175-
if (!isset($this->isCacheableCache)) {
1177+
if ($this->isCacheableCache === null) {
11761178
$this->build();
11771179
$elements = $this->getXml()->xpath('//' . Element::TYPE_BLOCK . '[@cacheable="false"]');
11781180
$cacheable = $this->cacheable;

0 commit comments

Comments
 (0)