-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[DI] Impossible to set an environment variable and then an array as container parameter #25333
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Could you change the base branch of your PR to 3.3? |
done :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change LGTM
@@ -615,6 +615,20 @@ public function testResolveEnvValues() | |||
unset($_ENV['DUMMY_ENV_VAR'], $_SERVER['DUMMY_SERVER_VAR'], $_SERVER['HTTP_DUMMY_VAR']); | |||
} | |||
|
|||
public function testResolveEnvValuesWithArray() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
risky test btw.. needs an assertion.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You definitely need to assert something.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did some assertions. Sorry for that.
@@ -615,6 +615,20 @@ public function testResolveEnvValues() | |||
unset($_ENV['DUMMY_ENV_VAR'], $_SERVER['DUMMY_SERVER_VAR'], $_SERVER['HTTP_DUMMY_VAR']); | |||
} | |||
|
|||
public function testResolveEnvValuesWithArray() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You definitely need to assert something.
Sorry I definitely didn't follow correctly the guideline for pull request... I will do better next time :) |
Thank you @Phantas0s. |
… array as container parameter (Phantas0s) This PR was squashed before being merged into the 3.3 branch (closes #25333). Discussion ---------- [DI] Impossible to set an environment variable and then an array as container parameter | Q | A | ------------- | --- | Branch? | 3.3 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #25245 | License | MIT When an environment variables and then an array is set as container parameters, an error is thrown (Warning: stripos() expects parameter 1 to be string, array given). You can run my test without the fix in the Container builder to see it. Commits ------- 484a082 [DI] Impossible to set an environment variable and then an array as container parameter
When an environment variables and then an array is set as container parameters, an error is thrown (Warning: stripos() expects parameter 1 to be string, array given).
You can run my test without the fix in the Container builder to see it.