diff --git a/src/Pdo/Driver.php b/src/Pdo/Driver.php index ddfd553..acf17cf 100644 --- a/src/Pdo/Driver.php +++ b/src/Pdo/Driver.php @@ -10,6 +10,7 @@ use PhpDb\Adapter\Driver\Feature\DriverFeatureProviderInterface; use PhpDb\Adapter\Driver\Pdo\AbstractPdo; use PhpDb\Adapter\Driver\Pdo\Result; +use PhpDb\Adapter\Driver\Pdo\Statement; use PhpDb\Adapter\Driver\PdoConnectionInterface; use PhpDb\Adapter\Driver\PdoDriverAwareInterface; use PhpDb\Adapter\Driver\ResultInterface; @@ -19,8 +20,8 @@ class Driver extends AbstractPdo { public function __construct( (PdoConnectionInterface&PdoDriverAwareInterface)|PDO $connection, - StatementInterface&PdoDriverAwareInterface $statementPrototype, - ResultInterface $resultPrototype, + StatementInterface&PdoDriverAwareInterface $statementPrototype = new Statement(), + ResultInterface $resultPrototype = new Result(), array $features = [], ) { $this->connection = $connection;