Skip to content

Version requirement changes and trait improvements - #22

Merged
qschmick merged 4 commits into
6.xfrom
feature/traits-and-version-updates
Sep 26, 2025
Merged

qschmick merged 4 commits into
6.xfrom
feature/traits-and-version-updates

Conversation

@qschmick

Copy link
Copy Markdown
Member

Description

Dropping php 8.2 support
Added new traits and updated existing traits

Release Notes

Suggested details for the release notes to explain how this impacts users

Types of changes

  • Bugfix
  • New feature
  • Chore (mundane code change)
  • Maintenance (clean up)

Checklist

  • Unit tests pass locally
  • Added tests to code that was updated or edited
  • Updated/added documentation

@qschmick
qschmick requested a review from Copilot September 26, 2025 17:26
@qschmick qschmick self-assigned this Sep 26, 2025
@qschmick qschmick added the ✨ enhancement New feature or request label Sep 26, 2025

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 drops PHP 8.2 support and introduces several new console traits for improved option handling. The changes modernize the codebase by requiring PHP 8.3+ and provide more structured ways to handle different types of console options.

  • Updated PHP version requirement from 8.2+ to 8.3+
  • Added five new console traits for handling numeric, enum, and array options with both required and optional variants
  • Updated existing RequiredOption trait to use proper imports and return types

Reviewed Changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
composer.json Drops PHP 8.2 support, now requires PHP 8.3+
README.md Updates version compatibility table to reflect new PHP requirements
src/Console/Traits/RequiredOption.php Modernizes with proper imports and return type declarations
src/Console/Traits/RequiredNumericOption.php New trait for handling required numeric console options
src/Console/Traits/RequiredEnumOption.php New trait for handling required enum-based console options
src/Console/Traits/NumericOption.php New trait for handling optional numeric console options
src/Console/Traits/EnumOption.php New trait for handling optional enum-based console options
src/Console/Traits/DryRun.php New trait providing dry-run functionality for console commands
src/Console/Traits/ArrayOption.php Enhanced to handle both string and array option values

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread src/Console/Traits/NumericOption.php
Comment thread src/Console/Traits/DryRun.php
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@qschmick
qschmick merged commit 8397ab5 into 6.x Sep 26, 2025
2 checks passed
@qschmick
qschmick deleted the feature/traits-and-version-updates branch September 26, 2025 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

✨ enhancement New feature or request

Development

Successfully merging this pull request may close these issues.

2 participants