We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d32c7be commit d51827fCopy full SHA for d51827f
system/View/Cells/Cell.php
@@ -79,7 +79,7 @@ final protected function view(?string $view, array $data = []): string
79
$ref = new ReflectionClass($this);
80
$view = decamelize($ref->getShortName());
81
$viewPath = dirname($ref->getFileName()) . DIRECTORY_SEPARATOR . $view . '.php';
82
- $view = file_exists($viewPath) ? $viewPath : str_replace('_cell', '', $view);
+ $view = is_file($viewPath) ? $viewPath : str_replace('_cell', '', $view);
83
}
84
85
// Locate our view, preferring the directory of the class.
0 commit comments