From 0017a3af4bc63a4e228e2403de559cb197737a68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Deruss=C3=A9?= Date: Wed, 24 Sep 2025 13:49:35 +0200 Subject: [PATCH 1/6] bump checkout action to v5 (#1941) --- .github/workflows/checks.yml | 2 +- .github/workflows/ci.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index b9c47e8..9747228 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -12,7 +12,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v4 + uses: actions/checkout@v5 with: fetch-depth: 0 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0778da5..10113a0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,7 +23,7 @@ jobs: coverage: none - name: Checkout code - uses: actions/checkout@v4 + uses: actions/checkout@v5 - name: Initialize tests run: make initialize From 99684acfedbe5f1b8152d4d1e305ff02f6481ea8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Deruss=C3=A9?= Date: Fri, 3 Oct 2025 12:48:21 +0200 Subject: [PATCH 2/6] Bump php-cs-fixer to version 3.87.x (#1942) --- CHANGELOG.md | 4 ++++ src/Input/GetThingShadowRequest.php | 4 ++-- src/Input/UpdateThingShadowRequest.php | 4 ++-- src/IotDataClient.php | 4 ++-- 4 files changed, 10 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 342f019..b4ef0db 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ ## NOT RELEASED +### Changed + +- Apply no CodingStandard from latest php-cs-fixer. + ## 1.1.4 ### Changed diff --git a/src/Input/GetThingShadowRequest.php b/src/Input/GetThingShadowRequest.php index 21e5b69..1b2174d 100644 --- a/src/Input/GetThingShadowRequest.php +++ b/src/Input/GetThingShadowRequest.php @@ -31,7 +31,7 @@ final class GetThingShadowRequest extends Input /** * @param array{ * thingName?: string, - * shadowName?: null|string, + * shadowName?: string|null, * '@region'?: string|null, * } $input */ @@ -45,7 +45,7 @@ public function __construct(array $input = []) /** * @param array{ * thingName?: string, - * shadowName?: null|string, + * shadowName?: string|null, * '@region'?: string|null, * }|GetThingShadowRequest $input */ diff --git a/src/Input/UpdateThingShadowRequest.php b/src/Input/UpdateThingShadowRequest.php index a1d9399..165c416 100644 --- a/src/Input/UpdateThingShadowRequest.php +++ b/src/Input/UpdateThingShadowRequest.php @@ -40,7 +40,7 @@ final class UpdateThingShadowRequest extends Input /** * @param array{ * thingName?: string, - * shadowName?: null|string, + * shadowName?: string|null, * payload?: string, * '@region'?: string|null, * } $input @@ -56,7 +56,7 @@ public function __construct(array $input = []) /** * @param array{ * thingName?: string, - * shadowName?: null|string, + * shadowName?: string|null, * payload?: string, * '@region'?: string|null, * }|UpdateThingShadowRequest $input diff --git a/src/IotDataClient.php b/src/IotDataClient.php index 4469ad9..712b465 100644 --- a/src/IotDataClient.php +++ b/src/IotDataClient.php @@ -39,7 +39,7 @@ class IotDataClient extends AbstractApi * * @param array{ * thingName: string, - * shadowName?: null|string, + * shadowName?: string|null, * '@region'?: string|null, * }|GetThingShadowRequest $input * @@ -84,7 +84,7 @@ public function getThingShadow($input): GetThingShadowResponse * * @param array{ * thingName: string, - * shadowName?: null|string, + * shadowName?: string|null, * payload: string, * '@region'?: string|null, * }|UpdateThingShadowRequest $input From 868c6c584d031366b3ee2ba20a63506cfdbb52be Mon Sep 17 00:00:00 2001 From: Christophe Coevoet Date: Sat, 25 Oct 2025 16:43:20 +0200 Subject: [PATCH 3/6] Fix typo in changelog files (#1966) --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b4ef0db..484d088 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,7 @@ ### Changed -- Apply no CodingStandard from latest php-cs-fixer. +- Apply new CodingStandard from latest php-cs-fixer. ## 1.1.4 From c1b8737a37ab38b53877165521795cae14a3bad4 Mon Sep 17 00:00:00 2001 From: Christophe Coevoet Date: Sun, 26 Oct 2025 08:11:24 +0100 Subject: [PATCH 4/6] Drop support for PHP lower than 8.2 (#1967) * Drop support for PHP lower than 8.2 * Remove dead code related to old PHP versions * Regenerate the Psalm baseline --- .github/workflows/ci.yml | 2 +- CHANGELOG.md | 4 ++++ composer.json | 4 ++-- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 10113a0..f8cd96e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,7 +13,7 @@ jobs: strategy: max-parallel: 10 matrix: - php: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4', '8.5'] + php: ['8.2', '8.3', '8.4', '8.5'] steps: - name: Set up PHP diff --git a/CHANGELOG.md b/CHANGELOG.md index 484d088..01df470 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ ## NOT RELEASED +### Dependency bumped + +- Drop support for PHP versions lower than 8.2 + ### Changed - Apply new CodingStandard from latest php-cs-fixer. diff --git a/composer.json b/composer.json index cbc70f3..98728ca 100644 --- a/composer.json +++ b/composer.json @@ -11,7 +11,7 @@ "iot-data" ], "require": { - "php": "^7.2.5 || ^8.0", + "php": "^8.2", "async-aws/core": "^1.9" }, "autoload": { @@ -26,7 +26,7 @@ }, "extra": { "branch-alias": { - "dev-master": "1.1-dev" + "dev-master": "1.2-dev" } } } From 693d4cf36ad5ac32178f73fa0d2f767599e5dc8c Mon Sep 17 00:00:00 2001 From: Christophe Coevoet Date: Thu, 30 Oct 2025 03:31:11 +0100 Subject: [PATCH 5/6] Migrate the testsuite to PHPUnit 11 (#1977) --- .github/workflows/ci.yml | 3 +-- Makefile | 2 +- composer.json | 5 +++++ phpunit.xml.dist | 14 +++++++++++--- 4 files changed, 18 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f8cd96e..fd44f8c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,8 +31,7 @@ jobs: - name: Download dependencies run: | composer config minimum-stability dev - composer req symfony/phpunit-bridge --no-update composer update --no-interaction --prefer-dist --optimize-autoloader --prefer-stable - name: Run tests - run: ./vendor/bin/simple-phpunit + run: ./vendor/bin/phpunit diff --git a/Makefile b/Makefile index 850dffc..771133a 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,7 @@ start-docker: echo "Noop" test: initialize - ./vendor/bin/simple-phpunit + ./vendor/bin/phpunit clean: stop-docker stop-docker: diff --git a/composer.json b/composer.json index 98728ca..a9c4a07 100644 --- a/composer.json +++ b/composer.json @@ -14,6 +14,11 @@ "php": "^8.2", "async-aws/core": "^1.9" }, + "require-dev": { + "phpunit/phpunit": "^11.5.42", + "symfony/error-handler": "^7.3.2 || ^8.0", + "symfony/phpunit-bridge": "^7.3.2 || ^8.0" + }, "autoload": { "psr-4": { "AsyncAws\\IotData\\": "src" diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 9894ce3..20f6abf 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,17 +1,22 @@ - + ./src - + + trigger_deprecation + + @@ -20,4 +25,7 @@ ./tests/ + + + From d7b8fbe70394b27f94600fc5c3dc89ecb9137734 Mon Sep 17 00:00:00 2001 From: Christophe Coevoet Date: Fri, 7 Nov 2025 14:52:10 +0100 Subject: [PATCH 6/6] Fix badges in the readme of subtree packages (#1984) --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 972f310..50bad94 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # AsyncAws IotData Client -![](https://github.com/async-aws/iot-data/workflows/Tests/badge.svg?branch=master) -![](https://github.com/async-aws/iot-data/workflows/BC%20Check/badge.svg?branch=master) +![CI](https://github.com/async-aws/iot-data/actions/workflows/ci.yml/badge.svg?branch=master) +![BC Check](https://github.com/async-aws/iot-data/actions/workflows/checks.yml/badge.svg?branch=master) An API client for IotData.