Skip to content

Commit 0f8d9d6

Browse files
authored
Merge pull request #933 from hydephp/update-VirtualPage-compile-method-to-use-accessors
Update VirtualPage compile method to use accessors
2 parents 3942dcc + 5743e28 commit 0f8d9d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/framework/src/Pages/VirtualPage.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,9 @@ public function compile(): string
9191
return $this->__call('compile', []);
9292
}
9393

94-
if (! $this->contents && $this->view) {
94+
if (! $this->getContents() && $this->getBladeView()) {
9595
if (str_ends_with($this->view, '.blade.php')) {
96-
return AnonymousViewCompiler::call($this->view, $this->matter->toArray());
96+
return AnonymousViewCompiler::call($this->getBladeView(), $this->matter->toArray());
9797
}
9898

9999
return View::make($this->getBladeView(), $this->matter->toArray())->render();

0 commit comments

Comments
 (0)