Skip to content

Update copilot-instructions.md to reflect PHP 8.2+ minimum#145

Open
mambax7 wants to merge 2 commits intoXOOPS:masterfrom
mambax7:feature/static_callable_deprecation_Metagen
Open

Update copilot-instructions.md to reflect PHP 8.2+ minimum#145
mambax7 wants to merge 2 commits intoXOOPS:masterfrom
mambax7:feature/static_callable_deprecation_Metagen

Conversation

@mambax7
Copy link
Contributor

@mambax7 mambax7 commented Feb 25, 2026

The project requires PHP ^8.2 (composer.json) and CI tests 8.2-8.5. The instructions incorrectly referenced PHP 7.4, which caused CodeRabbit to flag first-class callable syntax as incompatible.

Aligns copilot-instructions.md with xoops-copilot-template.md and the actual project configuration.

Summary by CodeRabbit

  • Chores
    • Updated minimum PHP version requirement to 8.2. Dropped support for PHP 7.4, 8.0, and 8.1.
    • Refreshed development infrastructure and CI/CD configurations.
    • Enhanced contributor guidelines with stricter code quality standards.

The project requires PHP ^8.2 (composer.json) and CI tests 8.2-8.5.
The instructions incorrectly referenced PHP 7.4, which caused
CodeRabbit to flag first-class callable syntax as incompatible.

Aligns copilot-instructions.md with xoops-copilot-template.md and
the actual project configuration.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings February 25, 2026 02:48
@coderabbitai
Copy link

coderabbitai bot commented Feb 25, 2026

Warning

Rate limit exceeded

@mambax7 has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 6 minutes and 41 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

📥 Commits

Reviewing files that changed from the base of the PR and between c2b4ad4 and 481d9ba.

📒 Files selected for processing (1)
  • .github/copilot-instructions.md

Note

.coderabbit.yaml has unrecognized properties

CodeRabbit is using all valid settings from your configuration. Unrecognized properties (listed below) have been ignored and may indicate typos or deprecated fields that can be removed.

⚠️ Parsing warnings (1)
Validation error: Unrecognized key(s) in object: 'tools'
⚙️ Configuration instructions
  • Please see the configuration documentation for more information.
  • You can also validate your configuration using the online YAML validator.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Walkthrough

Updates PHP version requirements from 7.4–8.5 to 8.2–8.5 across CI/CD configurations and documentation. Expands allowed language features to include PHP 8.0+ constructs (named arguments, match expressions, enums, attributes, nullsafe operator, etc.). Adds two explicit PR checklist requirements for encoding constants and file operation error handling.

Changes

Cohort / File(s) Summary
Version Requirements & CI Configuration
.github/copilot-instructions.md
Updated PHP matrix from 7.4–8.5 to 8.2–8.5; added Scrutinizer range; expanded allowed language features to include PHP 8.0+ constructs (named arguments, match, enums, attributes, nullsafe operator, union types, readonly, etc.); added two new PR checklist items: encoding constant usage and file operation error handling compliance.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~4 minutes

Possibly related PRs

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately reflects the main change: updating copilot-instructions.md to reflect PHP 8.2+ as the minimum version, which is the primary purpose of this PR.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

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 and usage tips.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the PHP compatibility documentation in .github/copilot-instructions.md to reflect the project's actual PHP version requirements. The project requires PHP ^8.2 (as specified in composer.json) and the CI pipeline tests versions 8.2-8.5, but the documentation incorrectly stated PHP 7.4 as the minimum, which caused AI code reviewers to incorrectly flag modern PHP 8.x features as incompatible.

Changes:

  • Updated minimum PHP version from 7.4 to 8.2 throughout the documentation
  • Added comprehensive list of allowed PHP 8.0/8.1/8.2 features (named arguments, match expressions, enums, constructor promotion, attributes, nullsafe operator, first-class callables, etc.)
  • Updated all three references to PHP version ranges to consistently reflect 8.2-8.5

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In @.github/copilot-instructions.md:
- Line 34: Update the paragraph that enumerates allowed PHP features to
explicitly include PHP 8.2–specific syntax so CI won’t flag 8.2-only constructs;
append items such as "readonly classes", the "true" type, Disjunctive Normal
Form (DNF) types, trait constants, and the deprecation of dynamic properties to
the existing list of 8.0/8.1 features so the sentence now covers PHP 8.2+
constructs as well.

ℹ️ Review info

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 469c26f and c2b4ad4.

📒 Files selected for processing (1)
  • .github/copilot-instructions.md

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@sonarqubecloud
Copy link

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