Skip to content

Commit f3b3131

Browse files
authored
fix: type error in controlled cell (#9784)
1 parent 269a894 commit f3b3131

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/View/Cells/Cell.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ final protected function view(?string $view, array $data = []): string
8585
$viewName = decamelize(class_basename(static::class));
8686
$directory = dirname((new ReflectionClass($this))->getFileName()) . DIRECTORY_SEPARATOR;
8787

88-
$possibleView1 = $directory . substr($viewName, 0, strrpos($viewName, '_cell')) . '.php';
88+
$possibleView1 = $directory . substr($viewName, 0, (int) strrpos($viewName, '_cell')) . '.php';
8989
$possibleView2 = $directory . $viewName . '.php';
9090
}
9191

0 commit comments

Comments
 (0)