From 9f0768d1b827b938ef66385f2ac41136d65701de Mon Sep 17 00:00:00 2001 From: Raza Mehdi Date: Wed, 27 Sep 2023 14:11:12 +0500 Subject: [PATCH] Move JSON validation to derived class. --- phpunit.xml.dist | 1 + phpunit.xml.dist.php72 | 3 ++- phpunit.xml.dist.php8 | 1 + src/Services/Str.php | 34 +++++++++++++++++++++++++++++++++ src/Traits/PayPalHttpClient.php | 2 +- 5 files changed, 39 insertions(+), 2 deletions(-) create mode 100644 src/Services/Str.php diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 69320de0..139dd0a3 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -22,6 +22,7 @@ src/PayPalFacadeAccessor.php src/Traits/PayPalVerifyIPN.php + src/Services/Str.php src/Facades/ src/Providers/ diff --git a/phpunit.xml.dist.php72 b/phpunit.xml.dist.php72 index 83162cb3..69b5cd67 100644 --- a/phpunit.xml.dist.php72 +++ b/phpunit.xml.dist.php72 @@ -19,7 +19,8 @@ src/ src/PayPalFacadeAccessor.php - src/Traits/PayPalVerifyIPN.php + src/Traits/PayPalVerifyIPN.php + src/Services/Str.php src/Facades/ src/Providers/ diff --git a/phpunit.xml.dist.php8 b/phpunit.xml.dist.php8 index 9371056b..0748be70 100644 --- a/phpunit.xml.dist.php8 +++ b/phpunit.xml.dist.php8 @@ -7,6 +7,7 @@ src/PayPalFacadeAccessor.php src/Traits/PayPalVerifyIPN.php + src/Services/Str.php src/Facades/ src/Providers/ diff --git a/src/Services/Str.php b/src/Services/Str.php new file mode 100644 index 00000000..0fb4576f --- /dev/null +++ b/src/Services/Str.php @@ -0,0 +1,34 @@ +