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 269a894 commit f3b3131Copy full SHA for f3b3131
system/View/Cells/Cell.php
@@ -85,7 +85,7 @@ final protected function view(?string $view, array $data = []): string
85
$viewName = decamelize(class_basename(static::class));
86
$directory = dirname((new ReflectionClass($this))->getFileName()) . DIRECTORY_SEPARATOR;
87
88
- $possibleView1 = $directory . substr($viewName, 0, strrpos($viewName, '_cell')) . '.php';
+ $possibleView1 = $directory . substr($viewName, 0, (int) strrpos($viewName, '_cell')) . '.php';
89
$possibleView2 = $directory . $viewName . '.php';
90
}
91
0 commit comments