Skip to content

Commit 8f7fb57

Browse files
authored
Remove array syntax in #19741 (#19745)
1 parent 1795514 commit 8f7fb57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

framework/filters/PageCache.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ protected function calculateCacheKey()
334334
$key[] = Yii::$app->requestedRoute;
335335
}
336336

337-
if ($this->variations instanceof Closure || (is_array($this->variations) && is_callable($this->variations))) {
337+
if ($this->variations instanceof Closure) {
338338
$variations = call_user_func($this->variations, $this);
339339
} else {
340340
$variations = $this->variations;

0 commit comments

Comments
 (0)