@@ -814,6 +814,8 @@ function lang(string $line, array $args = [], ?string $locale = null)
814814 * - notice
815815 * - info
816816 * - debug
817+ *
818+ * @param array<string, mixed> $context
817819 */
818820 function log_message (string $ level , string $ message , array $ context = []): void
819821 {
@@ -856,7 +858,7 @@ function model(string $name, bool $getShared = true, ?ConnectionInterface &$conn
856858 * @param string|null $default
857859 * @param 'attr'|'css'|'html'|'js'|'raw'|'url'|false $escape
858860 *
859- * @return array|string|null
861+ * @return array<array-key, mixed> |string|null
860862 */
861863 function old (string $ key , $ default = null , $ escape = 'html ' )
862864 {
@@ -1180,7 +1182,7 @@ function slash_item(string $item): ?string
11801182 * Helper function used to convert a string, array, or object
11811183 * of attributes to a string.
11821184 *
1183- * @param array|object|string $attributes string, array, object that can be cast to array
1185+ * @param array<array-key, mixed> |object|string $attributes
11841186 */
11851187 function stringify_attributes ($ attributes , bool $ js = false ): string
11861188 {
@@ -1247,7 +1249,8 @@ function timer(?string $name = null, ?callable $callable = null)
12471249 * NOTE: Does not provide any escaping of the data, so that must
12481250 * all be handled manually by the developer.
12491251 *
1250- * @param array $options Options for saveData or third-party extensions.
1252+ * @param array<string, mixed> $data
1253+ * @param array<string, mixed> $options Options for saveData or third-party extensions.
12511254 */
12521255 function view (string $ name , array $ data = [], array $ options = []): string
12531256 {
@@ -1270,7 +1273,7 @@ function view(string $name, array $data = [], array $options = []): string
12701273 * View cells are used within views to insert HTML chunks that are managed
12711274 * by other classes.
12721275 *
1273- * @param array|string|null $params
1276+ * @param array<array-key, mixed> |string|null $params
12741277 *
12751278 * @throws ReflectionException
12761279 */
0 commit comments