From ccf4c419e4a68107424a5414fac5c16e55f8226a Mon Sep 17 00:00:00 2001 From: Thomas Landauer Date: Thu, 9 May 2024 22:37:13 +0200 Subject: [PATCH] Update ParameterAssertionsTrait.php: Adding info about `bind` I hardly have any parameters `set`, I define most of them via `bind`. That's why I'm adding this. There is no way to grab a `bind`-Parameter, right? --- src/Codeception/Module/Symfony/ParameterAssertionsTrait.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Codeception/Module/Symfony/ParameterAssertionsTrait.php b/src/Codeception/Module/Symfony/ParameterAssertionsTrait.php index 61c98dd..ecbbbbc 100644 --- a/src/Codeception/Module/Symfony/ParameterAssertionsTrait.php +++ b/src/Codeception/Module/Symfony/ParameterAssertionsTrait.php @@ -16,6 +16,7 @@ trait ParameterAssertionsTrait * grabParameter('app.business_name'); * ``` + * This only works for explicitly set parameters (just using `bind` for Symfony's dependency injection is not enough). */ public function grabParameter(string $parameterName): array|bool|string|int|float|UnitEnum|null {