From 247bbba82f5f91261254a4c2ae187216eb10b6df Mon Sep 17 00:00:00 2001 From: bytestream Date: Thu, 28 May 2026 22:49:57 +0100 Subject: [PATCH 1/4] Update dependencies --- composer.json | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/composer.json b/composer.json index d7a4efe..7732107 100644 --- a/composer.json +++ b/composer.json @@ -13,8 +13,7 @@ "php": "^8.1", "guzzlehttp/guzzle": "^7.0", "kevinrob/guzzle-cache-middleware": "^5.0 || ^6.0 || ^7.0", - "phpdocumentor/reflection-docblock": "^5.2", - "propaganistas/laravel-phone": "^5.3", + "propaganistas/laravel-phone": "^5.3|^6.0", "psr/http-message": "^1.1|^2.0", "supportpal/eloquent-model": "^1.1", "symfony/cache": "^6.2|^7.2", @@ -23,7 +22,7 @@ "symfony/yaml": "^6.2|^7.0" }, "require-dev": { - "brianium/paratest": "^4.0|^5.0|^6.0", + "brianium/paratest": "^6.0|^7.0", "jangregor/phpstan-prophecy": "2.2.0", "larapack/dd": "^1.1", "phpmd/phpmd": "^2.9", @@ -31,7 +30,7 @@ "phpstan/phpstan": "2.1.31", "phpstan/phpstan-deprecation-rules": "^2.0", "phpstan/phpstan-phpunit": "^2.0", - "phpunit/phpunit": "^9.3", + "phpunit/phpunit": "^10.5|^11.5|^12.5|^13.1", "rregeer/phpunit-coverage-check": "^0.3.1", "slevomat/coding-standard": "^8.15", "squizlabs/php_codesniffer": "^3.5", From d4db05e48debed634313eb33c1a13dafe0530d1a Mon Sep 17 00:00:00 2001 From: bytestream Date: Thu, 28 May 2026 23:02:59 +0100 Subject: [PATCH 2/4] wip --- test/Unit/Model/User/Request/CreateUserTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/Unit/Model/User/Request/CreateUserTest.php b/test/Unit/Model/User/Request/CreateUserTest.php index 39e2669..a21a218 100644 --- a/test/Unit/Model/User/Request/CreateUserTest.php +++ b/test/Unit/Model/User/Request/CreateUserTest.php @@ -2,7 +2,7 @@ namespace SupportPal\ApiClient\Tests\Unit\Model\User\Request; -use Propaganistas\LaravelPhone\Exceptions\NumberParseException; +use libphonenumber\NumberParseException; use SupportPal\ApiClient\Model\User\Request\CreateUser; use SupportPal\ApiClient\Tests\Unit\Model\BaseModelTest; From 9a636d791a8524d2c0ce97dab2928879c7ba5f1f Mon Sep 17 00:00:00 2001 From: bytestream Date: Thu, 28 May 2026 23:06:25 +0100 Subject: [PATCH 3/4] wip --- composer.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 7732107..5a9f12b 100644 --- a/composer.json +++ b/composer.json @@ -22,7 +22,7 @@ "symfony/yaml": "^6.2|^7.0" }, "require-dev": { - "brianium/paratest": "^6.0|^7.0", + "brianium/paratest": "^6.0", "jangregor/phpstan-prophecy": "2.2.0", "larapack/dd": "^1.1", "phpmd/phpmd": "^2.9", @@ -30,7 +30,7 @@ "phpstan/phpstan": "2.1.31", "phpstan/phpstan-deprecation-rules": "^2.0", "phpstan/phpstan-phpunit": "^2.0", - "phpunit/phpunit": "^10.5|^11.5|^12.5|^13.1", + "phpunit/phpunit": "^9.3", "rregeer/phpunit-coverage-check": "^0.3.1", "slevomat/coding-standard": "^8.15", "squizlabs/php_codesniffer": "^3.5", From 4421d4f44f12cc59dcf92be684e5b2bbc13902cd Mon Sep 17 00:00:00 2001 From: bytestream Date: Thu, 28 May 2026 23:11:32 +0100 Subject: [PATCH 4/4] wip --- test/Unit/Model/User/Request/CreateUserTest.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/test/Unit/Model/User/Request/CreateUserTest.php b/test/Unit/Model/User/Request/CreateUserTest.php index a21a218..fff405e 100644 --- a/test/Unit/Model/User/Request/CreateUserTest.php +++ b/test/Unit/Model/User/Request/CreateUserTest.php @@ -35,21 +35,18 @@ public function testSetPhoneNumber(): void public function testSetPhoneNumberInvalidNumber(): void { $this->expectException(NumberParseException::class); - $this->expectExceptionMessage('Number does not match the provided country.'); $this->model->setPhoneNumber('14+%595', 'US'); } public function testSetPhoneNumberCountryRequired(): void { $this->expectException(NumberParseException::class); - $this->expectExceptionMessage('Number requires a country to be specified.'); $this->model->setPhoneNumber('123456789'); } public function testSetPhoneNumberInvalidCountry(): void { $this->expectException(NumberParseException::class); - $this->expectExceptionMessage('Number does not match the provided country.'); $this->model->setPhoneNumber('2323247465753', 'GB'); }