From 007e37eefa60addf2cec3df1b3a7d02577491c5e Mon Sep 17 00:00:00 2001 From: michalsn Date: Fri, 31 Oct 2025 16:01:31 +0100 Subject: [PATCH] fix: type error in controlled cell --- system/View/Cells/Cell.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'; }