From 6e2e0e35720d494cad53a8b91f5a0d1da4adb873 Mon Sep 17 00:00:00 2001 From: Ahmad Tawila Date: Thu, 21 Nov 2024 18:08:42 +0200 Subject: [PATCH] Fix a mistake in the example code snippet --- docs/BDD.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/BDD.md b/docs/BDD.md index 94b2fd182..abf640754 100644 --- a/docs/BDD.md +++ b/docs/BDD.md @@ -403,7 +403,7 @@ Inside a step definition data is stored in argument passed as `\Behat\Gherkin\No public function iHaveProductsInCart(\Behat\Gherkin\Node\TableNode $products) { // iterate over all rows - foreach ($node->getRows() as $index => $row) { + foreach ($products->getRows() as $index => $row) { if ($index === 0) { // first row to define fields $keys = $row; continue;