Skip to content

Commit ccf4c41

Browse files
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?
1 parent 5ef40f6 commit ccf4c41

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Codeception/Module/Symfony/ParameterAssertionsTrait.php

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ trait ParameterAssertionsTrait
1616
* <?php
1717
* $I->grabParameter('app.business_name');
1818
* ```
19+
* This only works for explicitly set parameters (just using `bind` for Symfony's dependency injection is not enough).
1920
*/
2021
public function grabParameter(string $parameterName): array|bool|string|int|float|UnitEnum|null
2122
{

0 commit comments

Comments
 (0)