Skip to content

Commit c015ee2

Browse files
authored
Fix a mistake in the example code snippet (#878)
1 parent 7003d20 commit c015ee2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/BDD.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ Inside a step definition data is stored in argument passed as `\Behat\Gherkin\No
403403
public function iHaveProductsInCart(\Behat\Gherkin\Node\TableNode $products)
404404
{
405405
// iterate over all rows
406-
foreach ($node->getRows() as $index => $row) {
406+
foreach ($products->getRows() as $index => $row) {
407407
if ($index === 0) { // first row to define fields
408408
$keys = $row;
409409
continue;

0 commit comments

Comments
 (0)