Skip to content

Commit f1dd03b

Browse files
committed
refactor: using generics template
1 parent 948aa5a commit f1dd03b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

system/Common.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -371,9 +371,11 @@ function db_connect($db = null, bool $getShared = true)
371371
* retrieving values set from the .env file for
372372
* use in config files.
373373
*
374-
* @param array<int|string, mixed>|bool|float|int|string|null $default
374+
* @template T
375375
*
376-
* @return array<int|string, mixed>|bool|float|int|string|null
376+
* @param T $default
377+
*
378+
* @return T
377379
*/
378380
function env(string $key, $default = null)
379381
{

0 commit comments

Comments
 (0)