Skip to content

Conversation

@onairmarc
Copy link
Member

@onairmarc onairmarc commented Nov 3, 2025

Summary by CodeRabbit

  • Documentation
    • Updated library with deprecation annotations for legacy components to guide users toward modern alternatives.

@coderabbitai
Copy link

coderabbitai bot commented Nov 3, 2025

Walkthrough

A PHPDoc deprecation annotation was added to the Deprecated class in src/Attributes/Deprecated.php, recommending use of PHP 8.4's native Deprecated Attribute instead. No runtime behavior or control flow changes.

Changes

Cohort / File(s) Summary
Documentation Updates
src/Attributes/Deprecated.php
Added PHPDoc @deprecated annotation to class Deprecated, directing users to utilize PHP 8.4's built-in Deprecated Attribute

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

This change consists solely of adding a documentation annotation with no logic modifications, runtime behavior changes, or control flow alterations.

Poem

🐰 A note upon the class so old,
"Use PHP 8.4's new gold!"
The rabbit whispers, soft and clear,
Deprecation's gentle peer.
One line of wisdom, nothing more—
A sign to guide forevermore.

Pre-merge checks and finishing touches

✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The pull request title 'Deprecate the Deprecated Attribute in favor of PHP 8.4 Deprecated Attribute' directly and clearly relates to the main change in the changeset. The raw summary confirms that a PHPDoc deprecation annotation was added to the Deprecated class specifically to indicate that developers should use PHP 8.4's native Deprecated Attribute instead. The title accurately captures this primary objective and is specific enough for teammates to understand the change.
✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch dep

Warning

There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.

🔧 PHPStan (2.1.31)

Invalid configuration:
Unexpected item 'parameters › cognitive_complexity'.


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

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

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 8e2a527 and 7290243.

📒 Files selected for processing (1)
  • src/Attributes/Deprecated.php (1 hunks)

@onairmarc onairmarc merged commit be6831d into main Nov 3, 2025
7 checks passed
@onairmarc onairmarc deleted the dep branch November 3, 2025 13:22
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