We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8151548 commit 1782779Copy full SHA for 1782779
1 file changed
src/Container/PlatformInterfaceFactory.php
@@ -6,12 +6,13 @@
6
7
use PhpDb\Adapter\Pgsql;
8
use PhpDb\Adapter\Platform\PlatformInterface;
9
+use PhpDb\Exception\ContainerException;
10
use Psr\Container\ContainerInterface;
11
12
final class PlatformInterfaceFactory
13
{
14
/**
- * @throws Pgsql\Exception\ContainerException
15
+ * @throws ContainerException
16
*/
17
public function __invoke(
18
ContainerInterface $container,
@@ -24,8 +25,9 @@ public function __invoke(
24
25
&& ! $driver instanceof Pgsql\Pdo\Driver
26
) {
27
// todo: Once latest PR is merged for 0.5.0 update to use PhpDB\Exception\ContainerException
- throw Pgsql\Exception\ContainerException::forServiceFailure(
28
+ throw ContainerException::forService(
29
PlatformInterface::class,
30
+ self::class,
31
'Invalid or missing driver provided'
32
);
33
}
0 commit comments