Skip to content

Commit 2812e87

Browse files
authored
Merge pull request #50 from tyrsson/add-pdo-defaults
Somehow pdo driver was missed
2 parents c532716 + 7aa0c0d commit 2812e87

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/Pdo/Driver.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
use PhpDb\Adapter\Driver\Feature\DriverFeatureProviderInterface;
1111
use PhpDb\Adapter\Driver\Pdo\AbstractPdo;
1212
use PhpDb\Adapter\Driver\Pdo\Result;
13+
use PhpDb\Adapter\Driver\Pdo\Statement;
1314
use PhpDb\Adapter\Driver\PdoConnectionInterface;
1415
use PhpDb\Adapter\Driver\PdoDriverAwareInterface;
1516
use PhpDb\Adapter\Driver\ResultInterface;
@@ -19,8 +20,8 @@ class Driver extends AbstractPdo
1920
{
2021
public function __construct(
2122
(PdoConnectionInterface&PdoDriverAwareInterface)|PDO $connection,
22-
StatementInterface&PdoDriverAwareInterface $statementPrototype,
23-
ResultInterface $resultPrototype,
23+
StatementInterface&PdoDriverAwareInterface $statementPrototype = new Statement(),
24+
ResultInterface $resultPrototype = new Result(),
2425
array $features = [],
2526
) {
2627
$this->connection = $connection;

0 commit comments

Comments
 (0)