Skip to content

Commit 7964c45

Browse files
committed
fix phpstan
1 parent fb9556f commit 7964c45

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/View/Parser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public function render(string $view, ?array $options = null, ?bool $saveData = n
9898

9999
if (! is_file($file)) {
100100
$fileOrig = $file;
101-
$file = ($this->locator ?: service('locator'))->locateFile($view, 'Views');
101+
$file = $this->locator->locateFile($view, 'Views');
102102

103103
// locateFile will return an empty string if the file cannot be found.
104104
if (empty($file)) {

0 commit comments

Comments
 (0)