From 6d4e8400ccd78a834f18b315a32e2d44546aa6f2 Mon Sep 17 00:00:00 2001 From: Amaury Balmer Date: Fri, 16 Oct 2026 23:04:07 +0200 Subject: [PATCH 1/3] fix(composer): allow composer/installers v2 and bump to 1.0.3 The `^1.0` constraint on composer/installers pins consuming projects (wp-skeleton among others) to installers 1.x, which emits PHP 8.4 implicit-nullable deprecation notices on every Composer command. Accept `^1.0 || ^2.0` so projects can resolve installers 2.x. Co-Authored-By: Claude Fable 5.1 --- beapi-missed-schedule.php | 2 +- composer.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/beapi-missed-schedule.php b/beapi-missed-schedule.php index 2331996..b895255 100644 --- a/beapi-missed-schedule.php +++ b/beapi-missed-schedule.php @@ -3,7 +3,7 @@ * Plugin Name: Missed Schedule * Plugin URI: https://github.com/BeAPI/missed-schedule * Description: Publish future post when the publication date has passed and WordPress fails. - * Version: 1.0.2 + * Version: 1.0.3 * Requires at least: 3.9 * Requires PHP: 5.6 * Author: Be API diff --git a/composer.json b/composer.json index 8991651..3cad621 100644 --- a/composer.json +++ b/composer.json @@ -11,7 +11,7 @@ ], "require": { "php": ">=5.6.0", - "composer/installers": "^1.0" + "composer/installers": "^1.0 || ^2.0" }, "require-dev": { "dealerdirect/phpcodesniffer-composer-installer": "^1.0", From a3fe13572d60f2d46b7263c0d17cc7010dcb6059 Mon Sep 17 00:00:00 2001 From: Amaury Balmer Date: Fri, 16 Oct 2026 23:08:43 +0200 Subject: [PATCH 2/3] ci: run quality workflow on PHP 8.2-8.4 and drop the Psalm step The workflow still targeted PHP 7.4, which grumphp-shim ^2.7 cannot install on, and still ran `composer psalm` although Psalm was removed from the project. Move the matrix to supported PHP versions, drop the Psalm step and its orphan Composer script, and update actions/checkout. Co-Authored-By: Claude Fable 5.1 --- .github/workflows/quality.yml | 22 +++++++++------------- composer.json | 3 +-- 2 files changed, 10 insertions(+), 15 deletions(-) diff --git a/.github/workflows/quality.yml b/.github/workflows/quality.yml index c2d0077..5da241c 100644 --- a/.github/workflows/quality.yml +++ b/.github/workflows/quality.yml @@ -3,37 +3,33 @@ name: Quality on: [pull_request] jobs: - run: + run: runs-on: ${{ matrix.operating-system }} strategy: matrix: operating-system: [ ubuntu-latest ] - php-versions: [ '7.4' ] + php-versions: [ '8.2', '8.3', '8.4' ] name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }} steps: - name: Checkout - uses: actions/checkout@v1 + uses: actions/checkout@v4 - name: Setup PHP uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php-versions }} - extensions: mbstring, intl #optional, setup extensions - ini-values: post_max_size=256M #optional, setup php.ini configuration - coverage: xdebug #optional, setup coverage driver - tools: psalm, phpcbf, phpcs + extensions: mbstring, intl + ini-values: post_max_size=256M + coverage: none + - name: Check PHP Version run: php -v - + - name: Add dependencies - run: composer install + run: composer install - name: Check composer run: composer validate - name: Check cs run: composer cs - - - name: Check psalm - run: composer psalm - \ No newline at end of file diff --git a/composer.json b/composer.json index 3cad621..0914526 100644 --- a/composer.json +++ b/composer.json @@ -32,7 +32,6 @@ }, "scripts": { "cbf": "./vendor/bin/phpcbf", - "cs": "./vendor/bin/phpcs", - "psalm": "./vendor/bin/psalm" + "cs": "./vendor/bin/phpcs" } } From e0c114fa47f86365f83f0f9fa0953175dc68ce7b Mon Sep 17 00:00:00 2001 From: Amaury Balmer Date: Fri, 16 Oct 2026 23:10:02 +0200 Subject: [PATCH 3/3] ci: allow the PHPCS composer installer so WordPress standards register With the Dealerdirect installer disallowed, `installed_paths` is never set on a clean install and `composer cs` aborts with "Referenced sniff WordPress-Extra does not exist". Allow the plugin, as the other agency projects do, and move actions/checkout to v5. Co-Authored-By: Claude Fable 5.1 --- .github/workflows/quality.yml | 2 +- composer.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/quality.yml b/.github/workflows/quality.yml index 5da241c..db2ff0a 100644 --- a/.github/workflows/quality.yml +++ b/.github/workflows/quality.yml @@ -12,7 +12,7 @@ jobs: name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }} steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v5 - name: Setup PHP uses: shivammathur/setup-php@v2 diff --git a/composer.json b/composer.json index 0914526..8783df5 100644 --- a/composer.json +++ b/composer.json @@ -25,7 +25,7 @@ "config": { "allow-plugins": { "composer/installers": true, - "dealerdirect/phpcodesniffer-composer-installer": false, + "dealerdirect/phpcodesniffer-composer-installer": true, "phpro/grumphp-shim": true }, "sort-packages": true