mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-30 05:00:51 +08:00
remove CacheInterface and PSR related @throw doc comments
This commit is contained in:
parent
bc6be4993a
commit
6db0a457bf
4 changed files with 1 additions and 8 deletions
|
@ -14,7 +14,6 @@ use WooCommerce\PayPalCommerce\ApiClient\Entity\Token;
|
|||
use WooCommerce\PayPalCommerce\ApiClient\Exception\RuntimeException;
|
||||
use WooCommerce\PayPalCommerce\ApiClient\Helper\Cache;
|
||||
use Psr\Log\LoggerInterface;
|
||||
use Psr\SimpleCache\CacheInterface;
|
||||
|
||||
/**
|
||||
* Class PayPalBearer
|
||||
|
@ -88,7 +87,6 @@ class PayPalBearer implements Bearer {
|
|||
* Returns a bearer token.
|
||||
*
|
||||
* @return Token
|
||||
* @throws \Psr\SimpleCache\InvalidArgumentException When cache is invalid.
|
||||
* @throws RuntimeException When request fails.
|
||||
*/
|
||||
public function bearer(): Token {
|
||||
|
@ -104,7 +102,6 @@ class PayPalBearer implements Bearer {
|
|||
* Creates a new bearer token.
|
||||
*
|
||||
* @return Token
|
||||
* @throws \Psr\SimpleCache\InvalidArgumentException When cache is invalid.
|
||||
* @throws RuntimeException When request fails.
|
||||
*/
|
||||
private function newBearer(): Token {
|
||||
|
|
|
@ -17,7 +17,6 @@ use WooCommerce\PayPalCommerce\Button\Endpoint\EndpointInterface;
|
|||
use WooCommerce\PayPalCommerce\Button\Endpoint\RequestData;
|
||||
use WooCommerce\PayPalCommerce\WcGateway\Settings\Settings;
|
||||
use WooCommerce\PayPalCommerce\Webhooks\WebhookRegistrar;
|
||||
use Psr\SimpleCache\CacheInterface;
|
||||
|
||||
/**
|
||||
* Class LoginSellerEndpoint
|
||||
|
@ -98,7 +97,6 @@ class LoginSellerEndpoint implements EndpointInterface {
|
|||
* Handles the incoming request.
|
||||
*
|
||||
* @return bool
|
||||
* @throws \Psr\SimpleCache\InvalidArgumentException When a cache item was not found.
|
||||
*/
|
||||
public function handle_request(): bool {
|
||||
|
||||
|
|
|
@ -15,7 +15,6 @@ use WooCommerce\PayPalCommerce\Onboarding\State;
|
|||
use WooCommerce\PayPalCommerce\WcGateway\Gateway\CreditCardGateway;
|
||||
use WooCommerce\PayPalCommerce\WcGateway\Gateway\PayPalGateway;
|
||||
use WooCommerce\PayPalCommerce\Webhooks\WebhookRegistrar;
|
||||
use Psr\SimpleCache\CacheInterface;
|
||||
|
||||
/**
|
||||
* Class SettingsListener
|
||||
|
@ -88,7 +87,6 @@ class SettingsListener {
|
|||
* Listens to the request.
|
||||
*
|
||||
* @throws \WooCommerce\PayPalCommerce\WcGateway\Exception\NotFoundException When a setting was not found.
|
||||
* @throws \Psr\SimpleCache\InvalidArgumentException When the argument was invalid.
|
||||
*/
|
||||
public function listen() {
|
||||
|
||||
|
|
|
@ -4,10 +4,10 @@ declare(strict_types=1);
|
|||
namespace Inpsyde\PayPalCommerce\ApiClient\Authentication;
|
||||
|
||||
use Brain\Monkey\Expectation\Exception\ExpectationArgsRequired;
|
||||
|
||||
use Inpsyde\PayPalCommerce\ApiClient\Exception\RuntimeException;
|
||||
use Inpsyde\PayPalCommerce\ApiClient\TestCase;
|
||||
use Psr\Log\LoggerInterface;
|
||||
use Psr\SimpleCache\CacheInterface;
|
||||
use Mockery;
|
||||
use function Brain\Monkey\Functions\expect;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue