The test forward-incompatible statement must be a wrapper statement, not just...

The test forward-incompatible statement must be a wrapper statement, not just implement the driver-level interface
parent 10ebb4c1
...@@ -6,7 +6,7 @@ use Doctrine\DBAL\Driver\ResultStatement; ...@@ -6,7 +6,7 @@ use Doctrine\DBAL\Driver\ResultStatement;
use Doctrine\DBAL\Driver\Statement as DriverStatement; use Doctrine\DBAL\Driver\Statement as DriverStatement;
use Doctrine\DBAL\Driver\StatementIterator; use Doctrine\DBAL\Driver\StatementIterator;
use Doctrine\DBAL\ParameterType; use Doctrine\DBAL\ParameterType;
use IteratorAggregate; use Doctrine\DBAL\Statement as BaseStatement;
use PDO; use PDO;
use function assert; use function assert;
...@@ -14,10 +14,10 @@ use function assert; ...@@ -14,10 +14,10 @@ use function assert;
/** /**
* A wrapper that does not implement the forward-compatible statement interface. * A wrapper that does not implement the forward-compatible statement interface.
*/ */
class Statement implements IteratorAggregate, DriverStatement class Statement extends BaseStatement
{ {
/** @var DriverStatement|ResultStatement */ /** @var DriverStatement|ResultStatement */
private $stmt; protected $stmt;
/** /**
* @param DriverStatement|ResultStatement $stmt * @param DriverStatement|ResultStatement $stmt
......
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