Skip to content

Commit 59ea6d5

Browse files
committed
minor #49936 [DependencyInjection] Add more precise types in EnvVarProcessorInterface (stof)
This PR was merged into the 6.3 branch. Discussion ---------- [DependencyInjection] Add more precise types in `EnvVarProcessorInterface` | Q | A | ------------- | --- | Branch? | 6.3 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | n/a | License | MIT | Doc PR | n/a This more precise type will help static analyzers and IDEs to spot mistakes in implementations of this interface Commits ------- 9fb701dfe1 Add more precise types in EnvVarProcessorInterface
2 parents 7d3524d + c983355 commit 59ea6d5

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)