ci: PHP 8.5 for the PHP jobs, as composer:2 moved to PHP 8.6 #8

Merged
dawid merged 1 commit from ci-php-8.5 into main 2026-11-19 23:42:44 +00:00
Owner

composer:2, the image of the PHP jobs, follows PHP's newest release and has PHP 8.6 since 2026-11-19. On it:

  • php-cs-fixer refuses to run ("supports PHP syntax only up to PHP 8.5"); that failed nextcloud-cryptomator's run 126;
  • Psalm 6.20 crashes;
  • PHPUnit does not start: the image lacks mbstring there.

The composer image has no tags with an older PHP. The jobs now run in php:8.5-cli-alpine, where they passed until then, and a first step installs what the composer image had: bash and git (for the steps), the zip and bz2 extensions, and Composer from its installer, checked against the signature Composer publishes (about 20 s). Where two jobs need it, the step is written once (&tools).

Renovate's bump of the tag to 8.6 will show when the tools support it. The local notes (AGENTS.md) no longer suggest composer:2.

Tried in php:8.5-cli-alpine with the step as written (sh -e): lint, coding standard, Psalm and PHPUnit pass in all three PHP apps (nextcloud-cryptomator, nextcloud-talk-ai, nextcloud-talk-stickers), and talk-ai's tests against dev-stable32, dev-stable35 and dev-master. The same change goes to each of the three.

`composer:2`, the image of the PHP jobs, follows PHP's newest release and has PHP 8.6 since 2026-11-19. On it: - php-cs-fixer refuses to run ("supports PHP syntax only up to PHP 8.5"); that failed `nextcloud-cryptomator`'s run 126; - Psalm 6.20 crashes; - PHPUnit does not start: the image lacks `mbstring` there. The composer image has no tags with an older PHP. The jobs now run in `php:8.5-cli-alpine`, where they passed until then, and a first step installs what the composer image had: bash and git (for the steps), the `zip` and `bz2` extensions, and Composer from its installer, checked against the signature Composer publishes (about 20 s). Where two jobs need it, the step is written once (`&tools`). Renovate's bump of the tag to 8.6 will show when the tools support it. The local notes (`AGENTS.md`) no longer suggest `composer:2`. Tried in `php:8.5-cli-alpine` with the step as written (`sh -e`): lint, coding standard, Psalm and PHPUnit pass in all three PHP apps (nextcloud-cryptomator, nextcloud-talk-ai, nextcloud-talk-stickers), and talk-ai's tests against `dev-stable32`, `dev-stable35` and `dev-master`. The same change goes to each of the three.
ci: PHP 8.5 for the PHP jobs, as composer:2 moved to PHP 8.6
All checks were successful
CI / php (dev-master) (pull_request) Successful in 1m6s
CI / php (dev-stable32) (pull_request) Successful in 1m5s
CI / php (dev-stable33) (pull_request) Successful in 30s
CI / php (dev-stable34) (pull_request) Successful in 1m3s
CI / php (dev-stable35) (pull_request) Successful in 27s
CI / standards (pull_request) Successful in 1m7s
CI / server (32) (pull_request) Successful in 1m7s
CI / javascript (pull_request) Successful in 17s
CI / server (35) (pull_request) Successful in 1m13s
1fe6e53119
composer:2 follows PHP's newest release and has PHP 8.6 since 2026-11-19: php-cs-fixer
refuses it ("supports PHP syntax only up to PHP 8.5"), Psalm 6 crashes on it and the
image lacks mbstring there, which PHPUnit needs. The composer image has no tags with
an older PHP, so the jobs run in php:8.5-cli-alpine, where they passed until then, and
install what the composer image had: bash and git, the zip and bz2 extensions and
Composer, from its installer checked against the signature Composer publishes.

Renovate's bump of the image's tag to 8.6 shows when the tools support it. The local
notes no longer suggest composer:2.
dawid merged commit b6ed56b431 into main 2026-11-19 23:42:44 +00:00
dawid deleted branch ci-php-8.5 2026-11-19 23:42:44 +00:00
Sign in to join this conversation.
No description provided.