Skip to content

Commit c983355

Browse files
committed
Add more precise types in EnvVarProcessorInterface
1 parent 26e7107 commit c983355

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

EnvVarProcessorInterface.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,16 @@ interface EnvVarProcessorInterface
2323
/**
2424
* Returns the value of the given variable as managed by the current instance.
2525
*
26-
* @param string $prefix The namespace of the variable
27-
* @param string $name The name of the variable within the namespace
28-
* @param \Closure $getEnv A closure that allows fetching more env vars
26+
* @param string $prefix The namespace of the variable
27+
* @param string $name The name of the variable within the namespace
28+
* @param \Closure(string): mixed $getEnv A closure that allows fetching more env vars
2929
*
3030
* @throws RuntimeException on error
3131
*/
3232
public function getEnv(string $prefix, string $name, \Closure $getEnv): mixed;
3333

3434
/**
35-
* @return string[] The PHP-types managed by getEnv(), keyed by prefixes
35+
* @return array<string, string> The PHP-types managed by getEnv(), keyed by prefixes
3636
*/
3737
public static function getProvidedTypes(): array;
3838
}

0 commit comments

Comments
 (0)