From d683ad6a1dce87ffa3b0c97884ee9b90aca4cdc6 Mon Sep 17 00:00:00 2001 From: Dick van der Heiden Date: Sat, 1 Mar 2025 16:36:00 +0100 Subject: [PATCH] Add support for Laravel 12 --- CHANGELOG.md | 6 ++++++ composer.json | 10 +++++----- phpunit.xml.dist | 10 ++++++---- src/Client.php | 2 +- tests/Support/ListFilterTest.php | 6 ------ 5 files changed, 18 insertions(+), 16 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 20fdc4d3..c0a0575e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). this package and not the Core API. See the changelog of the [Core API](https://core-api.cyberfusion.io/redoc#section/Changelog) for detailed information. +## [1.119.0] + +### Added + +- Add support for Laravel 12. + ## [1.118.1] ### Fixed diff --git a/composer.json b/composer.json index 41e9f420..1a18db3d 100644 --- a/composer.json +++ b/composer.json @@ -12,14 +12,14 @@ "php": "^8.1", "ext-json": "*", "guzzlehttp/guzzle": "^7.2", - "illuminate/support": "^8.22 || ^9.0 || ^10.0 || ^11.0", - "ramsey/uuid": "^3.9 || ^4.0", + "illuminate/support": "^8.22|^9.0|^10.0|^11.0|^12.0", + "ramsey/uuid": "^3.9|^4.0", "vdhicts/http-query-builder": "^1.0" }, "require-dev": { - "phpstan/phpstan": "^1.2", - "phpunit/phpunit": "^9.6 || 10.0", - "rector/rector": "^1.0.0", + "phpstan/phpstan": "^1.2|^2.0", + "phpunit/phpunit": "^10.0|^11.0|^12.0", + "rector/rector": "^1.0|^2.0", "symplify/easy-coding-standard": "^12.0" }, "autoload": { diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 6ec43c2a..bc5367ce 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,9 +1,6 @@ - + - - src/ - @@ -13,4 +10,9 @@ tests + + + src/ + + diff --git a/src/Client.php b/src/Client.php index b2f39406..77b7622f 100644 --- a/src/Client.php +++ b/src/Client.php @@ -20,7 +20,7 @@ class Client implements ClientContract private const TIMEOUT = 180; - private const VERSION = '1.118.1'; + private const VERSION = '1.119.0'; private const USER_AGENT = 'cyberfusion-cluster-api-client/' . self::VERSION; diff --git a/tests/Support/ListFilterTest.php b/tests/Support/ListFilterTest.php index e6e6af92..09bb5750 100644 --- a/tests/Support/ListFilterTest.php +++ b/tests/Support/ListFilterTest.php @@ -15,9 +15,7 @@ public function testListFilterDefaults() $this->assertSame(0, $listFilter->getSkip()); $this->assertSame(100, $listFilter->getLimit()); - $this->assertIsArray($listFilter->getFilter()); $this->assertCount(0, $listFilter->getFilter()); - $this->assertIsArray($listFilter->getSort()); $this->assertCount(0, $listFilter->getSort()); } @@ -40,9 +38,7 @@ public function testListFilterWithArrays() $this->assertSame($skip, $listFilter->getSkip()); $this->assertSame($limit, $listFilter->getLimit()); - $this->assertIsArray($listFilter->getFilter()); $this->assertCount(1, $listFilter->getFilter()); - $this->assertIsArray($listFilter->getSort()); $this->assertCount(1, $listFilter->getSort()); } @@ -90,9 +86,7 @@ public function testListFilterWithObjects() $this->assertSame($skip, $listFilter->getSkip()); $this->assertSame($limit, $listFilter->getLimit()); - $this->assertIsArray($listFilter->getFilter()); $this->assertCount(1, $listFilter->getFilter()); - $this->assertIsArray($listFilter->getSort()); $this->assertCount(1, $listFilter->getSort()); }