Skip to content

Commit 4e207a0

Browse files
authored
Merge pull request #35 from KeitaHiguchi/fix-comment-grabfromdatabase
Update comments on grabFromDatabase
2 parents 4ec1208 + 3b794d9 commit 4e207a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Codeception/Module/Db.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -936,8 +936,8 @@ public function grabColumnFromDatabase(string $table, string $column, array $cri
936936
*
937937
* ```php
938938
* <?php
939-
* $post = $I->grabFromDatabase('posts', ['num_comments >=' => 100]);
940-
* $user = $I->grabFromDatabase('users', ['email like' => 'miles%']);
939+
* $postNum = $I->grabFromDatabase('posts', 'num_comments', ['num_comments >=' => 100]);
940+
* $mail = $I->grabFromDatabase('users', 'email', ['email like' => 'miles%']);
941941
* ```
942942
*
943943
* Supported operators: `<`, `>`, `>=`, `<=`, `!=`, `like`.

0 commit comments

Comments
 (0)