From a4fd531328eb9991740fa4f4a1e492d96707dce7 Mon Sep 17 00:00:00 2001 From: Andy Librian Date: Tue, 20 Oct 2015 18:30:31 +0700 Subject: [PATCH] Loosen type hint from DBAL PDOConnection to simply PDO object --- src/Jackalope/Transport/DoctrineDBAL/Client.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Jackalope/Transport/DoctrineDBAL/Client.php b/src/Jackalope/Transport/DoctrineDBAL/Client.php index 08a84c9a..05103137 100644 --- a/src/Jackalope/Transport/DoctrineDBAL/Client.php +++ b/src/Jackalope/Transport/DoctrineDBAL/Client.php @@ -28,7 +28,6 @@ use PHPCR\Util\UUIDHelper; use PHPCR\Util\PathHelper; use Doctrine\DBAL\Connection; -use Doctrine\DBAL\Driver\PDOConnection; use Doctrine\DBAL\DBALException; use Doctrine\DBAL\Platforms\PostgreSqlPlatform; use Doctrine\DBAL\Platforms\SqlitePlatform; @@ -204,11 +203,11 @@ public function __construct(FactoryInterface $factory, Connection $conn) /** * @TODO: move to "SqlitePlatform" and rename to "registerExtraFunctions"? * - * @param PDOConnection $sqliteConnection + * @param \PDO $sqliteConnection * * @return Client */ - private function registerSqliteFunctions(PDOConnection $sqliteConnection) + private function registerSqliteFunctions(\PDO $sqliteConnection) { $sqliteConnection->sqliteCreateFunction('EXTRACTVALUE', function ($string, $expression) { if (null === $string) {