File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
lib/internal/Magento/Framework/View Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments