Skip to content

Commit 2280f9b

Browse files
committed
Added docblock typing for SMv3 and SMv4 compatibility
1 parent 66ff73f commit 2280f9b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Container/AdapterAbstractServiceFactory.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@
88
use PhpDb\Adapter\Adapter;
99
use PhpDb\Adapter\AdapterInterface;
1010
use PhpDb\ResultSet\ResultSetInterface;
11-
use Psr\Container\ContainerExceptionInterface;
1211
use Psr\Container\ContainerInterface;
13-
use Psr\Container\NotFoundExceptionInterface;
1412

1513
use function is_array;
1614

@@ -28,6 +26,8 @@ class AdapterAbstractServiceFactory implements AbstractFactoryInterface
2826

2927
/**
3028
* Can we create an adapter by the requested name?
29+
*
30+
* @param string $requestedName
3131
*/
3232
public function canCreate(ContainerInterface $container, $requestedName): bool
3333
{
@@ -43,6 +43,8 @@ public function canCreate(ContainerInterface $container, $requestedName): bool
4343

4444
/**
4545
* Create a DB adapter
46+
*
47+
* @param string $requestedName
4648
*/
4749
public function __invoke(
4850
ContainerInterface $container,

0 commit comments

Comments
 (0)