diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index e6bb8c9e..0a6fa02c 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -7,7 +7,7 @@ jobs: strategy: fail-fast: false matrix: - php-versions: ['7.0', '7.1', '7.2', '7.3', '7.4'] + php-versions: ['7.1', '7.2', '7.3', '7.4'] steps: - name: Checkout uses: actions/checkout@v2 @@ -32,7 +32,7 @@ jobs: - name: Install Composer dependencies env: PHP_VERSION: ${{ matrix.php-versions }} - run: $(if [ "$PHP_VERSION" == "7.0" ]; then echo "composer install"; else echo "composer install --no-progress --prefer-dist --optimize-autoloader"; fi;) + run: composer install --no-progress --prefer-dist --optimize-autoloader - name: Run tests with code coverage env: PHP_VERSION: ${{ matrix.php-versions }} diff --git a/tests/Feature/AdapterBillingPlansPricingHelpersTest.php b/tests/Feature/AdapterBillingPlansPricingHelpersTest.php index 61b9a3e4..bfd2967f 100644 --- a/tests/Feature/AdapterBillingPlansPricingHelpersTest.php +++ b/tests/Feature/AdapterBillingPlansPricingHelpersTest.php @@ -18,7 +18,7 @@ class AdapterBillingPlansPricingHelpersTest extends TestCase /** @var \Srmklive\PayPal\Services\PayPal */ protected $client; - protected function setUp() + protected function setUp(): void { $this->client = new PayPalClient($this->getApiCredentials()); diff --git a/tests/Feature/AdapterConfigTest.php b/tests/Feature/AdapterConfigTest.php index 4f599fee..3e603175 100644 --- a/tests/Feature/AdapterConfigTest.php +++ b/tests/Feature/AdapterConfigTest.php @@ -13,7 +13,7 @@ class AdapterConfigTest extends TestCase /** @var \Srmklive\PayPal\Services\PayPal */ protected $client; - protected function setUp() + protected function setUp(): void { $this->client = new PayPalClient($this->getApiCredentials()); diff --git a/tests/Feature/AdapterCreateSubscriptionHelpersTest.php b/tests/Feature/AdapterCreateSubscriptionHelpersTest.php index 04de1ec8..e327842a 100644 --- a/tests/Feature/AdapterCreateSubscriptionHelpersTest.php +++ b/tests/Feature/AdapterCreateSubscriptionHelpersTest.php @@ -19,7 +19,7 @@ class AdapterCreateSubscriptionHelpersTest extends TestCase /** @var \Srmklive\PayPal\Services\PayPal */ protected $client; - protected function setUp() + protected function setUp(): void { $this->client = new PayPalClient($this->getApiCredentials()); diff --git a/tests/Feature/AdapterExperienceContextTest.php b/tests/Feature/AdapterExperienceContextTest.php index 12fc654c..7018e2f3 100644 --- a/tests/Feature/AdapterExperienceContextTest.php +++ b/tests/Feature/AdapterExperienceContextTest.php @@ -23,7 +23,7 @@ class AdapterExperienceContextTest extends TestCase /** @var \Srmklive\PayPal\Services\PayPal */ protected $client; - protected function setUp() + protected function setUp(): void { $this->client = new PayPalClient($this->getApiCredentials()); diff --git a/tests/Feature/AdapterFeatureTest.php b/tests/Feature/AdapterFeatureTest.php index 7f330164..deeff4e4 100644 --- a/tests/Feature/AdapterFeatureTest.php +++ b/tests/Feature/AdapterFeatureTest.php @@ -24,7 +24,7 @@ class AdapterFeatureTest extends TestCase /** @var \Srmklive\PayPal\Services\PayPal */ protected $client; - protected function setUp() + protected function setUp(): void { $this->client = new PayPalClient($this->getApiCredentials()); diff --git a/tests/Feature/AdapterOrdersHelperTest.php b/tests/Feature/AdapterOrdersHelperTest.php index bc7feade..e25ee6f4 100644 --- a/tests/Feature/AdapterOrdersHelperTest.php +++ b/tests/Feature/AdapterOrdersHelperTest.php @@ -21,7 +21,7 @@ class AdapterOrdersHelperTest extends TestCase /** @var \Srmklive\PayPal\Services\PayPal */ protected $client; - protected function setUp() + protected function setUp(): void { $this->client = new PayPalClient($this->getApiCredentials()); diff --git a/tests/Feature/AdapterPaymentMethodTokensHelpersTest.php b/tests/Feature/AdapterPaymentMethodTokensHelpersTest.php index 7894362a..79fdfbb4 100644 --- a/tests/Feature/AdapterPaymentMethodTokensHelpersTest.php +++ b/tests/Feature/AdapterPaymentMethodTokensHelpersTest.php @@ -20,7 +20,7 @@ class AdapterPaymentMethodTokensHelpersTest extends TestCase /** @var \Srmklive\PayPal\Services\PayPal */ protected $client; - protected function setUp() + protected function setUp(): void { $this->client = new PayPalClient($this->getApiCredentials());