Relax statement type declaration

fetch() is part of the ResultStatement interface. Using Statement as a
type declaration needlessly constrains people to use this class only
with implementations of Statement.
parent b0726e7a
......@@ -6,10 +6,10 @@ use IteratorAggregate;
class StatementIterator implements IteratorAggregate
{
/** @var Statement */
/** @var ResultStatement */
private $statement;
public function __construct(Statement $statement)
public function __construct(ResultStatement $statement)
{
$this->statement = $statement;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment