From f02d06aed761330f730ff3f33b185dfae313e6f9 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 24 Apr 2026 00:12:53 +0000 Subject: [PATCH 1/2] Add composer test script to fix CI Agent-Logs-Url: https://github.com/voku/html2text/sessions/a2e3b134-dfdd-4de4-ac09-63d0f5fd43eb Co-authored-by: voku <264695+voku@users.noreply.github.com> --- composer.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/composer.json b/composer.json index b51ea2e..bc6b6cc 100644 --- a/composer.json +++ b/composer.json @@ -28,5 +28,8 @@ "psr-4": { "voku\\Html2Text\\tests\\": "tests" } + }, + "scripts": { + "test": "vendor/bin/phpunit" } } From 96bf73f1be838f4a0057a129720998ee383d0cf9 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 24 Apr 2026 00:17:00 +0000 Subject: [PATCH 2/2] Fix CI: move phpstan to a dedicated PHP 8.3 job Agent-Logs-Url: https://github.com/voku/html2text/sessions/3f8bdcf0-4bf0-43d1-ad01-0641a40a88f4 Co-authored-by: voku <264695+voku@users.noreply.github.com> --- .github/workflows/ci.yml | 22 ++++++++++++++++++++++ composer.json | 1 - 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 04e322d..5e59a10 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -53,6 +53,28 @@ jobs: - name: Run PHPUnit run: composer test + phpstan: + name: PHPStan + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v6.0.2 + + - uses: shivammathur/setup-php@2.37.0 + with: + php-version: '8.3' + coverage: none + tools: composer:v2 + + - name: Install dependencies + run: composer update --prefer-dist --no-interaction --no-progress + + - name: Install PHPStan + run: composer require --dev phpstan/phpstan:^1.10 --no-interaction --no-progress + + - name: Run PHPStan + run: vendor/bin/phpstan analyse --configuration=phpstan.neon + lowest-dependencies: name: Lowest dependencies runs-on: ubuntu-latest diff --git a/composer.json b/composer.json index bc6b6cc..c33036c 100644 --- a/composer.json +++ b/composer.json @@ -16,7 +16,6 @@ "voku/portable-utf8": "^6.0" }, "require-dev": { - "phpstan/phpstan": "^1.10", "phpunit/phpunit": "^7.5 || ^8.5 || ^9.6" }, "autoload": {