Skip to content

Commit b2e9add

Browse files
Philippe Segatorinicolas-grekas
authored andcommitted
Add supported schemes doc blocks type
1 parent 6345175 commit b2e9add

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Exception/UnsupportedSchemeException.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ class UnsupportedSchemeException extends LogicException
4040
],
4141
];
4242

43+
/**
44+
* @param string[] $supported
45+
*/
4346
public function __construct(Dsn $dsn, string $name = null, array $supported = [])
4447
{
4548
$provider = $dsn->getScheme();

Transport/AbstractTransportFactory.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ public function supports(Dsn $dsn): bool
3939
return \in_array($dsn->getScheme(), $this->getSupportedSchemes());
4040
}
4141

42+
/**
43+
* @return string[]
44+
*/
4245
abstract protected function getSupportedSchemes(): array;
4346

4447
protected function getUser(Dsn $dsn): string

0 commit comments

Comments
 (0)