Skip to content

Commit 97d5e39

Browse files
author
Sebastian Thulin
committed
fix: use static call for contextCache
1 parent a5415db commit 97d5e39

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

library/Customizer/Applicators/AbstractApplicator.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ protected function hasFilterContexts(array $contexts, array $filterContexts): bo
8686

8787
$cacheKey = md5(serialize($contexts) . serialize($filterContexts));
8888

89-
if (isset($this->contextCache[$cacheKey])) {
90-
return $this->contextCache[$cacheKey];
89+
if (isset(self::$contextCache[$cacheKey])) {
90+
return self::$contextCache[$cacheKey];
9191
}
9292

9393
$hasContext = [];
@@ -108,6 +108,6 @@ protected function hasFilterContexts(array $contexts, array $filterContexts): bo
108108
$hasContext[] = (bool) eval('return in_array(' . $context['context'] . ', $contexts) ' . $context['operator'] . ' true;');
109109
}
110110

111-
return (bool) $this->contextCache[$cacheKey] = array_product($hasContext);
111+
return (bool) self::$contextCache[$cacheKey] = array_product($hasContext);
112112
}
113113
}

0 commit comments

Comments
 (0)