diff --git a/system/View/Cells/Cell.php b/system/View/Cells/Cell.php index ffe652baa3da..581499028e4b 100644 --- a/system/View/Cells/Cell.php +++ b/system/View/Cells/Cell.php @@ -85,7 +85,7 @@ final protected function view(?string $view, array $data = []): string $viewName = decamelize(class_basename(static::class)); $directory = dirname((new ReflectionClass($this))->getFileName()) . DIRECTORY_SEPARATOR; - $possibleView1 = $directory . substr($viewName, 0, strrpos($viewName, '_cell')) . '.php'; + $possibleView1 = $directory . substr($viewName, 0, (int) strrpos($viewName, '_cell')) . '.php'; $possibleView2 = $directory . $viewName . '.php'; }