You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The getenv function used by EnvironmentParameterStore will result in a string always being returned the way the class is currently implemented. The return type on this method is currently erroneous; it is declared as string|array|false but will never return array nor false.
Ideally this parameter store would be aware of the type of the parameter it is being injected into and cast where appropriate. This could allow declaring configuration provided through the environment with proper types (e.g. a database configuration specifying a port as an integer).
The text was updated successfully, but these errors were encountered:
The
getenv
function used byEnvironmentParameterStore
will result in a string always being returned the way the class is currently implemented. The return type on this method is currently erroneous; it is declared asstring|array|false
but will never returnarray
norfalse
.Ideally this parameter store would be aware of the type of the parameter it is being injected into and cast where appropriate. This could allow declaring configuration provided through the environment with proper types (e.g. a database configuration specifying a port as an integer).
The text was updated successfully, but these errors were encountered: