Skip to content

Support only maintained Nextcloud (33–35) and PHP (8.2+) versions - #350

Merged
Martin-1997 merged 4 commits into
masterfrom
build/329-platform-support
Nov 22, 2026
Merged

Martin-1997 merged 4 commits into
masterfrom
build/329-platform-support

Conversation

@Martin-1997

@Martin-1997 Martin-1997 commented Nov 19, 2026 •

Copy link
Copy Markdown
Collaborator

Fixes #329

Changes

  • appinfo/info.xml: <nextcloud min-version="33" max-version="35"/> (was 31–35), new <php min-version="8.2"/>. Validates against the App Store schema.
  • CI:
    • integration tests on stable33 and stable35 (was stable31/stable35), on all four databases;
    • phpstan against the stubs dev-stable33 and dev-stable35;
    • lint and unit tests already ran on PHP 8.2–8.5; only the comment in lint-php.yml is updated.
  • nextcloud/ocp (dev dependency for local phpstan runs): 34 → 33, the oldest supported version, so local phpstan runs catch APIs that are newer than the minimum. CI's phpstan swaps the stubs per job (33 and 35). The first attempt used 35, but nextcloud/ocp 35 requires PHP 8.3, so lint and unit tests on PHP 8.2 failed.
  • config.platform.php: 8.2.0 in composer.json, so composer update resolves for the minimum supported PHP and can't lock packages that need a newer one. Checked in a php:8.2-cli container: composer install, lint and unit tests pass.
  • RELEASING.md: a short policy. The app supports the Nextcloud versions Nextcloud maintains, and the min version goes up in the next minor release after an end of life. Plus which CI matrices to keep in sync.
  • Release workflow: no change needed. It signs with the server version from min-version, now stable33, automatically.

Why PHP 8.2 and not 8.3 yet

Nextcloud 33 and 34 run on PHP 8.2–8.5, and PHP 8.2 is supported until 2026-12-31. Requiring 8.3 now would cut off Nextcloud 33/34 instances on a still-supported PHP. Per the new policy, 8.3 follows in the first release after the end of 2026.

Legacy code

None to remove: the app has no code that depends on the Nextcloud or PHP version (no version_compare, method_exists, class_exists etc. in lib/). Baseline entries that only applied to the Nextcloud 31 stubs get cleaned up with the phpstan 2 upgrade (#330), which regenerates the baseline anyway.

Testing

  • phpstan locally against both stub versions (33 and 35): no errors.
  • Unit tests pass; composer validate is clean.
  • The integration tests against real Nextcloud 33 and 35 servers run in this PR's CI.

Versioning

A minor release (next: 1.1.0), as described in #329 and RELEASING.md. Instances on Nextcloud 31/32 stay on 1.0.2, which belongs in the release notes.

🤖 Generated with Claude Code

Martin-1997 and others added 4 commits November 22, 2026 14:37
Nextcloud 31 and 32 are end-of-life; Nextcloud only maintains 33, 34
and 35. PHP 8.1 is end-of-life, and Nextcloud 33/34 still run on PHP
8.2 (supported until 2026-12-31), so the minimum is 8.2 for now.

- info.xml: <nextcloud min-version="33" max-version="35"/> and
  <php min-version="8.2"/>
- CI: integration tests on stable33/stable35, phpstan stubs
  dev-stable33/dev-stable35; lint and unit tests already cover 8.2–8.5
- nextcloud/ocp dev dependency 34 -> 35
- RELEASING.md: policy for supported Nextcloud and PHP versions

The release workflow signs with the minimum supported server, now
stable33, automatically.

Fixes #329

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… 8.2

nextcloud/ocp 35 requires PHP 8.3, so the lock file didn't install on
PHP 8.2 (lint and unit tests on 8.2 failed). Use the stubs of the
oldest supported Nextcloud (33) instead, which also makes local phpstan
runs catch APIs newer than that version; CI's phpstan swaps the stubs
per matrix job (33 and 35) anyway.

config.platform.php 8.2.0 makes composer update resolve for the
minimum supported PHP, so this can't happen again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
composer.json pins the platform to PHP 8.2 (the minimum), which blocked
installing nextcloud/ocp:dev-stable35 (needs PHP 8.3) in the phpstan
job. Remove the pin in that job only; it runs on PHP 8.3, and phpstan
still checks the code for PHP 8.2 (phpVersion).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Martin-1997
Martin-1997 force-pushed the build/329-platform-support branch from aa41809 to a6ab9da Compare November 22, 2026 19:37
@Martin-1997
Martin-1997 merged commit 2603f56 into master Nov 22, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support only maintained Nextcloud (33–35) and PHP versions

1 participant