@@ -216,9 +216,19 @@ function config(string $name, bool $getShared = true)
216216 /**
217217 * Simpler way to create a new Cookie instance.
218218 *
219- * @param string $name Name of the cookie
220- * @param string $value Value of the cookie
221- * @param array $options Array of options to be passed to the cookie
219+ * @param string $name Name of the cookie
220+ * @param string $value Value of the cookie
221+ * @param array{
222+ * prefix?: string,
223+ * max-age?: int|numeric-string,
224+ * expires?: DateTimeInterface|int|string,
225+ * path?: string,
226+ * domain?: string,
227+ * secure?: bool,
228+ * httponly?: bool,
229+ * samesite?: string,
230+ * raw?: bool
231+ * } $options Cookie configuration options
222232 *
223233 * @throws CookieException
224234 */
@@ -352,7 +362,27 @@ function csp_script_nonce(): string
352362 * If $getShared === false then a new connection instance will be provided,
353363 * otherwise it will all calls will return the same instance.
354364 *
355- * @param array|ConnectionInterface|string|null $db
365+ * @param array{
366+ * DSN?: string,
367+ * hostname?: string,
368+ * username?: string,
369+ * password?: string,
370+ * database?: string,
371+ * DBDriver?: 'MySQLi'|'OCI8'|'Postgre'|'SQLite3'|'SQLSRV',
372+ * DBPrefix?: string,
373+ * pConnect?: bool,
374+ * DBDebug?: bool,
375+ * charset?: string,
376+ * DBCollat?: string,
377+ * swapPre?: string,
378+ * encrypt?: bool,
379+ * compress?: bool,
380+ * strictOn?: bool,
381+ * failover?: array<string, mixed>,
382+ * port?: int,
383+ * dateFormat?: array<string, string>,
384+ * foreignKeys?: bool
385+ * }|ConnectionInterface|string|null $db
356386 *
357387 * @return BaseConnection
358388 */
@@ -402,13 +432,13 @@ function env(string $key, $default = null)
402432 * If $data is an array, then it loops over it, escaping each
403433 * 'value' of the key/value pairs.
404434 *
405- * @param array|string $data
406- * @param 'attr'|'css'|'html'|'js'|'raw'|'url' $context
407- * @param string|null $encoding Current encoding for escaping.
408- * If not UTF-8, we convert strings from this encoding
409- * pre-escaping and back to this encoding post-escaping.
435+ * @param array<int |string, array<int|string, mixed>|string>|string $data
436+ * @param 'attr'|'css'|'html'|'js'|'raw'|'url' $context
437+ * @param string|null $encoding Current encoding for escaping.
438+ * If not UTF-8, we convert strings from this encoding
439+ * pre-escaping and back to this encoding post-escaping.
410440 *
411- * @return array|string
441+ * @return ($data is string ? string : array<int |string, array<int|string, mixed>|string>)
412442 *
413443 * @throws InvalidArgumentException
414444 */
@@ -560,7 +590,7 @@ function function_usable(string $functionName): bool
560590 * 2. {namespace}/Helpers
561591 * 3. system/Helpers
562592 *
563- * @param array |string $filenames
593+ * @param list<string> |string $filenames
564594 *
565595 * @throws FileNotFoundException
566596 */
0 commit comments