Skip to content

Commit

Permalink
update throw exception
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskapp committed Oct 10, 2024
1 parent 4373ae2 commit 7dcfdcc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions src/ApiManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,6 @@ public function register(string $scheme, ParserInterface $parser): void
$this->parsers[$scheme] = $parser;
}

/**
* @throws ApiException
*/
public function getApi(string $source, ?ContextInterface $context = null): SpecificationInterface
{
$item = null;
Expand Down
4 changes: 2 additions & 2 deletions src/ApiManagerInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
namespace PSX\Api;

use PSX\Api\Builder\SpecificationBuilderInterface;
use PSX\Api\Exception\InvalidApiException;
use PSX\Api\Exception\ApiException;
use PSX\Schema\Parser\ContextInterface;

/**
Expand Down Expand Up @@ -50,7 +50,7 @@ public function register(string $scheme, ParserInterface $parser): void;
*
* If the source is a simple string the manager tries to guess the fitting source uri format
*
* @throws InvalidApiException
* @throws ApiException
*/
public function getApi(string $source, ?ContextInterface $context = null): SpecificationInterface;

Expand Down

0 comments on commit 7dcfdcc

Please sign in to comment.