Skip to content

Commit

Permalink
Update ParameterAssertionsTrait.php: Adding info about bind
Browse files Browse the repository at this point in the history
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?
  • Loading branch information
ThomasLandauer authored May 9, 2024
1 parent 5ef40f6 commit ccf4c41
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ trait ParameterAssertionsTrait
* <?php
* $I->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
{
Expand Down

0 comments on commit ccf4c41

Please sign in to comment.