Skip to content

Align the composer requirements with the code and the core floor - #65

Open
matteotrubini wants to merge 1 commit into
wintercms:mainfrom
matteotrubini:fix/composer-requirements
Open

matteotrubini wants to merge 1 commit into
wintercms:mainfrom
matteotrubini:fix/composer-requirements

Conversation

@matteotrubini

@matteotrubini matteotrubini commented Oct 14, 2026 •

Copy link
Copy Markdown

Summary by CodeRabbit

  • Chores
    • Updated the minimum supported PHP version to 8.1 and adjusted minimum-version requirements for the backend, CMS, and system modules.
    • Updated the supported Composer Installer versions.

@coderabbitai

coderabbitai Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: dc5b21c7-d03f-48d0-8e08-f3c65cc20266
📥 Commits

Reviewing files that changed from the base of the PR and between d803332 and 7653117.

📒 Files selected for processing: 1
  • composer.json

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

Walkthrough

The Composer requirements now set PHP to version 8.1 or later. The backend, CMS, and system module constraints accept versions 1.2.8 or later, or dev-develop. The Composer Installer constraint now accepts versions in ^1.11 or ^2.0.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~5 minutes

Merge Risk: ⚪ Minimal · up to 76531

This change raises the PHP minimum and broadens the core-module and Composer Installer constraints. No concrete compatibility failure is established, so no actionable merge-blocking risk remains.

Pre-merge checks: Passed 5
Passed Passed checks: 5 passed
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly describes the main change: updating Composer requirements to match the code and minimum core versions.
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@LukeTowers

Copy link
Copy Markdown
Member

Why is adding system and cms required?

@matteotrubini

matteotrubini commented Oct 16, 2026 •

Copy link
Copy Markdown
Author

The plugin's shipped code imports classes from all three modules, so composer.json now declares all three. Concretely:

cms-module — all three frontend components extend Cms\Classes\ComponentBase (Account.php#L16, ResetPassword.php#L8, Session.php#L11), and two of them import Cms\Classes\Page (Account.php#L15, Session.php#L10).

system-module — Plugin.php imports System\Classes\PluginBase and System\Classes\SettingsManager (Plugin.php#L7-L8), ScaffoldCommand.php imports System\Models\File (ScaffoldCommand.php#L8), and MailBlocker.php imports System\Models\MailTemplate (MailBlocker.php#L7).

Previously only the backend module was declared, so the manifest under-declared: composer would install the plugin on an install missing cms or system, and it would fail at runtime.

The system module is part of every standard Winter install, so if you'd rather treat that entry as an assumed prerequisite, happy to drop it.

The existing backend requirement is kept, with its constraint normalised to >=1.2.8 || dev-develop to match the other module entries. The same changes are applied across the other first-party plugins for consistency.

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.

2 participants