Skip to content

Commit

Permalink
minor #35080 [Notifier] Add phpdoc types to supported schemes method …
Browse files Browse the repository at this point in the history
…(Philippe Segatori)

This PR was submitted for the master branch but it was merged into the 5.0 branch instead.

Discussion
----------

[Notifier] Add phpdoc types to supported schemes method

| Q             | A
| ------------- | ---
| Branch?       |  5.0
| Bug fix?      | no
| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tickets       | <!-- prefix each issue number with "Fix #", if any -->
| License       | MIT
| Doc PR        |  <!-- required for new features -->

Commits
-------

9bf46f8 Add supported schemes doc blocks type
  • Loading branch information
nicolas-grekas committed Dec 26, 2019
2 parents 10d2647 + 9bf46f8 commit 52395db
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Expand Up @@ -40,6 +40,9 @@ class UnsupportedSchemeException extends LogicException
],
];

/**
* @param string[] $supported
*/
public function __construct(Dsn $dsn, string $name = null, array $supported = [])
{
$provider = $dsn->getScheme();
Expand Down
Expand Up @@ -39,6 +39,9 @@ public function supports(Dsn $dsn): bool
return \in_array($dsn->getScheme(), $this->getSupportedSchemes());
}

/**
* @return string[]
*/
abstract protected function getSupportedSchemes(): array;

protected function getUser(Dsn $dsn): string
Expand Down

0 comments on commit 52395db

Please sign in to comment.