-
-
Notifications
You must be signed in to change notification settings - Fork 767
Upgrade to PHP 8.3+ and implement typed constants and Override attrib… #479
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
…utes - Update minimum PHP version from 8.2 to 8.3 in composer.json - Update CI workflow to test PHP 8.3, 8.4, and 8.5 - Add typed class constants (PHP 8.3 feature) to all Writer classes - Add #[\Override] attributes (PHP 8.3 feature) to all methods that override parent/interface methods - Improve type safety and catch potential refactoring errors at compile time 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
WalkthroughThe project raised its minimum PHP version from 8.2 to 8.3 and added support for PHP 8.5. Throughout the codebase, Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Rationale: Despite affecting many files, the changes are highly homogeneous and repetitive—systematic addition of PHP 8.3+ Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (22)
🧰 Additional context used🧬 Code graph analysis (20)src/Writer/Result/GifResult.php (5)
src/Writer/Result/PngResult.php (5)
src/Writer/ConsoleWriter.php (3)
src/Writer/GifWriter.php (2)
src/Writer/DebugWriter.php (3)
src/Writer/Result/BinaryResult.php (5)
src/Writer/PngWriter.php (2)
src/Writer/Result/GdResult.php (5)
src/Writer/Result/DebugResult.php (6)
src/Writer/Result/PdfResult.php (6)
src/Writer/Result/WebPResult.php (4)
src/Writer/SvgWriter.php (6)
src/Writer/WebPWriter.php (2)
src/Writer/EpsWriter.php (5)
src/Writer/Result/EpsResult.php (7)
src/Writer/PdfWriter.php (4)
src/Writer/AbstractGdWriter.php (9)
src/Writer/BinaryWriter.php (6)
src/Writer/Result/SvgResult.php (5)
src/Writer/Result/ConsoleResult.php (3)
🔇 Additional comments (31)
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. Comment |
There was a problem hiding this 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 upgrades the minimum PHP version from 8.2 to 8.3 and adopts new PHP 8.3 language features to improve type safety and code maintainability.
Key Changes:
- Updates minimum PHP version requirement to 8.3 and adjusts CI matrix to test versions 8.3, 8.4, and 8.5
- Adds typed class constants to all Writer classes for improved compile-time type checking
- Adds #[\Override] attributes to all overridden methods for better refactoring safety
Reviewed Changes
Copilot reviewed 22 out of 22 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| composer.json | Updated minimum PHP version from 8.2 to 8.3 |
| .github/workflows/CI.yml | Updated CI test matrix to PHP 8.3, 8.4, and 8.5 |
| src/Writer/*.php | Added #[\Override] attributes and typed constants to all Writer classes |
| src/Writer/Result/*.php | Added #[\Override] attributes to getString() and getMimeType() methods |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
…utes
🤖 Generated with Claude Code
Summary by CodeRabbit