Skip to content

Commit 8412376

Browse files
committed
Fix "Call to a member function applyTo() on null"
1 parent 4d63f1d commit 8412376

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ViewBuilder/ViewBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ public function toRenderArray(): array
148148

149149
$view['#_data'] = $this->data;
150150
$view['#attached'] = $this->attachments;
151-
$this->cacheabilityMetadata->applyTo($view);
151+
$this->getCacheableMetadata()->applyTo($view);
152152
$this->addThemeToRenderArray($view);
153153
$this->addCacheTagsToRenderArray($view);
154154
$this->dispatchCacheTags($view);

0 commit comments

Comments
 (0)