55namespace PhpDb \Adapter \Sqlite \Platform ;
66
77use Override ;
8+ use PDO ;
89use PhpDb \Adapter \Driver \PdoDriverInterface ;
9- use PhpDb \Adapter \Exception ;
1010use PhpDb \Adapter \Platform \AbstractPlatform ;
11- use PhpDb \Sql \Platform \PlatformDecoratorInterface ;
12- use PhpDb \Adapter \Sqlite \Driver \Pdo ;
1311use PhpDb \Adapter \Sqlite \Sql \Platform \Sqlite as SqlPlatformDecorator ;
12+ use PhpDb \Sql \Platform \PlatformDecoratorInterface ;
1413
1514class Sqlite extends AbstractPlatform
1615{
1716 public final const PLATFORM_NAME = 'SQLite ' ;
1817 /** @var string[] */
1918 protected $ quoteIdentifier = ['" ' , '" ' ];
2019
21- /** @var \ PDO */
20+ /** @var PDO */
2221 protected $ resource ;
2322
2423 /**
@@ -27,7 +26,7 @@ class Sqlite extends AbstractPlatform
2726 protected $ quoteIdentifierTo = '\'' ;
2827
2928 public function __construct (
30- protected readonly PdoDriverInterface |\ PDO $ driver
29+ protected readonly PdoDriverInterface |PDO $ driver
3130 ) {
3231 }
3332
@@ -43,7 +42,7 @@ public function quoteValue(string $value): string
4342 $ resource = $ resource ->getConnection ()->getResource ();
4443 }
4544
46- if ($ resource instanceof \ PDO ) {
45+ if ($ resource instanceof PDO ) {
4746 return $ resource ->quote ($ value );
4847 }
4948
@@ -62,7 +61,7 @@ public function quoteTrustedValue(int|float|string|bool $value): ?string
6261 $ resource = $ resource ->getConnection ()->getResource ();
6362 }
6463
65- if ($ resource instanceof \ PDO ) {
64+ if ($ resource instanceof PDO ) {
6665 return $ resource ->quote ($ value );
6766 }
6867
0 commit comments