From c82121cd81e1ce3bb187ddb50059453d6c8042f1 Mon Sep 17 00:00:00 2001 From: Stripe Date: Thu, 29 Sep 2022 17:38:17 -0500 Subject: [PATCH 1/4] Update deprecated test assertions --- test/specs/ConfigTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/specs/ConfigTest.php b/test/specs/ConfigTest.php index 67f9ed3..5750f9c 100644 --- a/test/specs/ConfigTest.php +++ b/test/specs/ConfigTest.php @@ -34,7 +34,7 @@ public function testGetCustomHeaders() $this->assertEquals($headers['Authorization'], 'Bearer test'); $this->assertEquals($headers['Content-Type'], 'application/json'); - $this->assertRegExp('/TaxJar\/PHP \(.*\) taxjar-php\/\d+\.\d+\.\d+/', $headers['User-Agent']); + $this->assertMatchesRegularExpression('/TaxJar\/PHP \(.*\) taxjar-php\/\d+\.\d+\.\d+/', $headers['User-Agent']); } public function testSetCustomHeaders() @@ -48,6 +48,6 @@ public function testSetCustomHeaders() $this->assertEquals($headers['Authorization'], 'Bearer test'); $this->assertEquals($headers['Content-Type'], 'application/json'); $this->assertEquals($headers['X-TJ-Expected-Response'], 422); - $this->assertRegExp('/TaxJar\/PHP \(.*\) taxjar-php\/\d+\.\d+\.\d+/', $headers['User-Agent']); + $this->assertMatchesRegularExpression('/TaxJar\/PHP \(.*\) taxjar-php\/\d+\.\d+\.\d+/', $headers['User-Agent']); } } From 52f07bccc3b38db7026bb6eb627b892f2939f46f Mon Sep 17 00:00:00 2001 From: Stripe Date: Thu, 29 Sep 2022 17:47:56 -0500 Subject: [PATCH 2/4] Updates minimum dep versions --- README.md | 3 +-- composer.json | 8 ++++---- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 44bb4ae..1d6ee99 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,5 @@ # TaxJar Sales Tax API for PHP [![Packagist](https://img.shields.io/packagist/v/taxjar/taxjar-php.svg)](https://packagist.org/packages/taxjar/taxjar-php) [![Build Status](https://img.shields.io/travis/taxjar/taxjar-php.svg?style=flat-square)](https://travis-ci.org/taxjar/taxjar-php) -TaxJar Official PHP client for Sales Tax API v2. For the REST documentation, please visit [https://developers.taxjar.com/api](https://developers.taxjar.com/api/reference/?php). @@ -18,7 +17,7 @@ Official PHP client for Sales Tax API v2. For the REST documentation, please vis ## Requirements -- PHP 5.5.0 and later. +- PHP 8.0 and later. - [Guzzle](https://github.com/guzzle/guzzle) (included via Composer). ## Installation diff --git a/composer.json b/composer.json index 6248cd0..eacdd98 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "taxjar/taxjar-php", - "description": "Sales Tax API Client for PHP 5.5+", + "description": "Sales Tax API Client for PHP 8.0+", "keywords": [ "taxjar", "sales tax", @@ -14,12 +14,12 @@ } ], "require": { - "php": "^7.2|^8.0", + "php": "^8.0", "ext-json": "*", - "guzzlehttp/guzzle": "^6.0.2|^7.0.1" + "guzzlehttp/guzzle": "^7.2" }, "require-dev": { - "phpunit/phpunit": "^8.5" + "phpunit/phpunit": "^9.3" }, "autoload": { "psr-4": { From c18d063e4dafd76efd7ef1d36ec682931b79779f Mon Sep 17 00:00:00 2001 From: Stripe Date: Thu, 29 Sep 2022 17:50:53 -0500 Subject: [PATCH 3/4] Update Travis CI PHP versions --- .travis.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index baf881a..b98a7e5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,9 +1,6 @@ language: php php: - - 7.2 - - 7.3 - - 7.4 - 8.0 - 8.1.0 From adb6ef0cf8cea29ea04e06d1321d432a9cb9e273 Mon Sep 17 00:00:00 2001 From: Seth Obey <47947793+sethobey@users.noreply.github.com> Date: Fri, 30 Sep 2022 08:42:27 -0500 Subject: [PATCH 4/4] Update README.md Revert img removal --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 1d6ee99..d28f9ef 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,6 @@ # TaxJar Sales Tax API for PHP [![Packagist](https://img.shields.io/packagist/v/taxjar/taxjar-php.svg)](https://packagist.org/packages/taxjar/taxjar-php) [![Build Status](https://img.shields.io/travis/taxjar/taxjar-php.svg?style=flat-square)](https://travis-ci.org/taxjar/taxjar-php) +TaxJar Official PHP client for Sales Tax API v2. For the REST documentation, please visit [https://developers.taxjar.com/api](https://developers.taxjar.com/api/reference/?php).