From d2db238ee31f4e300623618f1f2d220d118831a5 Mon Sep 17 00:00:00 2001 From: heinrichschiller Date: Sat, 28 Feb 2026 17:54:40 +0100 Subject: [PATCH 1/4] add PHP 8.5, drop PHP 8.1 --- .github/workflows/build.yml | 2 +- README.md | 2 +- composer.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b88998f..429673a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,7 +8,7 @@ jobs: strategy: matrix: operating-system: [ ubuntu-latest ] - php-versions: [ '8.1', '8.2', '8.3', '8.4' ] + php-versions: [ '8.2', '8.3', '8.4', '8.5' ] name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }} steps: diff --git a/README.md b/README.md index ff7c9c0..80289a3 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ responses and many other things. ## Requirements -* PHP 8.1 - 8.4 +* PHP 8.2 - 8.5 ## Installation diff --git a/composer.json b/composer.json index 08698e0..80d7969 100644 --- a/composer.json +++ b/composer.json @@ -16,7 +16,7 @@ ], "homepage": "https://github.com/selective-php/transformer", "require": { - "php": "8.1.* || 8.2.* || 8.3.* || 8.4.*" + "php": "~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0" }, "require-dev": { "friendsofphp/php-cs-fixer": "^3", From 1ed34de617b09bfb42e625d3c36e6209981f7350 Mon Sep 17 00:00:00 2001 From: heinrichschiller Date: Sat, 28 Feb 2026 17:55:00 +0100 Subject: [PATCH 2/4] update license year --- LICENSE | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LICENSE b/LICENSE index bfcf021..2013f40 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2025 odan +Copyright (c) 2026 odan Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal From 69e3bd6df06f68678ad65dd3ce9da5e004d1df3f Mon Sep 17 00:00:00 2001 From: heinrichschiller Date: Mon, 2 Mar 2026 11:47:27 +0100 Subject: [PATCH 3/4] fixed PHP_CS_FIXER_IGNORE_ENV deprecation --- composer.json | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/composer.json b/composer.json index 80d7969..cc94c0d 100644 --- a/composer.json +++ b/composer.json @@ -39,12 +39,10 @@ }, "scripts": { "cs:check": [ - "@putenv PHP_CS_FIXER_IGNORE_ENV=1", - "php-cs-fixer fix --dry-run --format=txt --verbose --diff --config=.cs.php --ansi" + "php-cs-fixer fix --dry-run --format=txt --verbose --diff --config=.cs.php --ansi --allow-unsupported-php-version=yes" ], "cs:fix": [ - "@putenv PHP_CS_FIXER_IGNORE_ENV=1", - "php-cs-fixer fix --config=.cs.php --ansi --verbose" + "php-cs-fixer fix --config=.cs.php --ansi --verbose --allow-unsupported-php-version=yes" ], "sniffer:check": "phpcs --standard=phpcs.xml", "sniffer:fix": "phpcbf --standard=phpcs.xml", From edf18b5ba02b95561c7dd87d9b6f38b193c23eab Mon Sep 17 00:00:00 2001 From: heinrichschiller Date: Mon, 2 Mar 2026 11:53:37 +0100 Subject: [PATCH 4/4] Upgrade of PHPUnit from ^10 to ^11 and update test --- composer.json | 2 +- phpunit.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index cc94c0d..b94d321 100644 --- a/composer.json +++ b/composer.json @@ -21,7 +21,7 @@ "require-dev": { "friendsofphp/php-cs-fixer": "^3", "phpstan/phpstan": "^1 || ^2", - "phpunit/phpunit": "^10", + "phpunit/phpunit": "^11", "squizlabs/php_codesniffer": "^3" }, "autoload": { diff --git a/phpunit.xml b/phpunit.xml index 2927473..7b7ad74 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -3,7 +3,7 @@ bootstrap="vendor/autoload.php" colors="true" backupGlobals="false" - xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.3/phpunit.xsd" + xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/11.5/phpunit.xsd" cacheDirectory=".phpunit.cache" backupStaticProperties="false">