Skip to content

Commit 0c7f108

Browse files
authored
Merge pull request #5720 from kenjis/fix-view-cell
docs: fix @param of view cell
2 parents 8dbef4e + 32e72c8 commit 0c7f108

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

system/Common.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1125,7 +1125,7 @@ function view(string $name, array $data = [], array $options = []): string
11251125
* View cells are used within views to insert HTML chunks that are managed
11261126
* by other classes.
11271127
*
1128-
* @param null $params
1128+
* @param array|string|null $params
11291129
*
11301130
* @throws ReflectionException
11311131
*/

system/View/Cell.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function __construct(CacheInterface $cache)
6262
/**
6363
* Render a cell, returning its body as a string.
6464
*
65-
* @param null $params
65+
* @param array|string|null $params
6666
*
6767
* @throws ReflectionException
6868
*/
@@ -141,7 +141,7 @@ public function render(string $library, $params = null, int $ttl = 0, ?string $c
141141
* If a string, it should be in the format "key1=value key2=value".
142142
* It will be split and returned as an array.
143143
*
144-
* @param mixed $params
144+
* @param array|string|null $params
145145
*
146146
* @return array|null
147147
*/

0 commit comments

Comments
 (0)