Skip to content

Commit

Permalink
Test passed
Browse files Browse the repository at this point in the history
  • Loading branch information
kedarkhaire committed Aug 22, 2023
1 parent c58872e commit 5e94f3c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
11 changes: 6 additions & 5 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
use Http\Discovery\MessageFactoryDiscovery;
use Http\Discovery\UriFactoryDiscovery;
use Http\Message\Authentication;
use Psr\Http\Message\UriFactoryInterface;
use Http\Message\UriFactory;
use Psr\Http\Client\ClientInterface as HttpClient;
use Psr\Http\Message\RequestInterface;
use Psr\Http\Message\ResponseInterface;
Expand Down Expand Up @@ -66,7 +66,7 @@ class Client implements ClientInterface

public const CONFIG_RETRY_PLUGIN_CONFIG = 'retry_plugin_config';

/** @var \Psr\Http\Message\UriFactoryInterface */
/** @var \Http\Message\UriFactory */
private $uriFactory;

/** @var string|null */
Expand Down Expand Up @@ -122,7 +122,7 @@ class Client implements ClientInterface
* User agent prefix.
* - Apigee\Edge\Client::CONFIG_HTTP_CLIENT_BUILDER: \Apigee\Edge\HttpClient\Utility\BuilderInterface|null
* Http client builder.
* - Apigee\Edge\Client::CONFIG_URI_FACTORY: Psr\Http\Message\UriFactoryInterface|null
* - Apigee\Edge\Client::CONFIG_URI_FACTORY: Http\Message\UriFactory|null
* Factory for PSR-7 URIs.
* - Apigee\Edge\Client::CONFIG_REQUEST_FACTORY: \Http\Message\RequestFactory|null
* Factory for PSR-7 Requests.
Expand Down Expand Up @@ -155,7 +155,8 @@ public function getJournal(): JournalInterface
/**
* {@inheritdoc}
*/
public function getUriFactory(): UriFactoryInterface
#[\ReturnTypeWillChange]
public function getUriFactory(): UriFactory
{
return $this->uriFactory;
}
Expand Down Expand Up @@ -266,7 +267,7 @@ protected function configureOptions(OptionsResolver $resolver): void
$resolver->setAllowedTypes(static::CONFIG_USER_AGENT_PREFIX, ['null', 'string']);
$resolver->setAllowedTypes(static::CONFIG_HTTP_CLIENT_BUILDER, ['null', '\Apigee\Edge\HttpClient\Utility\BuilderInterface']);
$resolver->setAllowedTypes(static::CONFIG_JOURNAL, ['null', '\Apigee\Edge\HttpClient\Utility\JournalInterface']);
$resolver->setAllowedTypes(static::CONFIG_URI_FACTORY, ['null', '\Psr\Http\Message\UriFactoryInterface']);
$resolver->setAllowedTypes(static::CONFIG_URI_FACTORY, ['null', '\Http\Message\UriFactory']);
$resolver->setAllowedTypes(static::CONFIG_REQUEST_FACTORY, ['null', '\Http\Message\RequestFactory']);
$resolver->setAllowedTypes(static::CONFIG_ERROR_FORMATTER, ['null', '\Http\Message\Formatter']);
$resolver->setAllowedTypes(static::CONFIG_RETRY_PLUGIN_CONFIG, ['null', 'array']);
Expand Down
7 changes: 4 additions & 3 deletions src/ClientInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
use Apigee\Edge\HttpClient\Utility\JournalInterface;
use Psr\Http\Client\ClientInterface as HttpClient;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\UriFactoryInterface;
use Http\Message\UriFactory;

/**
* Interface ClientInterface.
Expand Down Expand Up @@ -76,9 +76,10 @@ public function getJournal(): JournalInterface;
/**
* Returns the URI factory used by the Client.
*
* @return \Psr\Http\Message\UriFactoryInterface
* @return UriFactory
*/
public function getUriFactory(): UriFactoryInterface;
#[\ReturnTypeWillChange]
public function getUriFactory(): UriFactory;

/**
* Returns the version of the API client.
Expand Down

0 comments on commit 5e94f3c

Please sign in to comment.