Skip to content

Commit

Permalink
Update yield.md
Browse files Browse the repository at this point in the history
Fix wrong method in example.
  • Loading branch information
TheMY3 authored Apr 30, 2018
1 parent 00547c2 commit 2688788
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/yield.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ foreach ($pdo->yieldCol($stm, $bind) as $val) {
// class name and optional array of constructor arguments.
$class = 'ClassName';
$args = ['arg0', 'arg1', 'arg2'];
foreach ($pdo->yieldCol($stm, $bind, $class, $args) as $object) {
foreach ($pdo->yieldObjects($stm, $bind, $class, $args) as $object) {
// ...
}

Expand Down

0 comments on commit 2688788

Please sign in to comment.