Skip to content

Commit 6b136a5

Browse files
committed
Update StatementInterface: add IteratorAggregate
1 parent a95b786 commit 6b136a5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Driver/Statement.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
*
2222
* @internal Do not use this class directly.
2323
*/
24-
final class Statement implements StatementInterface, \IteratorAggregate
24+
final class Statement implements StatementInterface
2525
{
2626
/** @var PDOStatement */
2727
private $pdoStatement;

src/StatementInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* Must implement Traversable as IteratorAggregate or Iterator. You can access underlying PDOStatement
1616
* using getPDOStatement() method of `Cycle\Database\Driver\Statement` object.
1717
*/
18-
interface StatementInterface
18+
interface StatementInterface extends \IteratorAggregate
1919
{
2020
// Fetch rows as assoc array. Default.
2121
public const FETCH_ASSOC = 2;

0 commit comments

Comments
 (0)