Skip to content

Conversation

mehmet-yoti
Copy link
Contributor

No description provided.

Copy link

@Copilot 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 adds support for PHP 8.2 and 8.3 while updating the SDK version to 4.4.1. The changes extend PHP version compatibility and improve the testing workflow for newer PHP versions.

  • Updates SDK version from 4.4.0 to 4.4.1
  • Adds PHP 8.2 and 8.3 support to composer requirements
  • Consolidates GitHub Actions workflow for testing multiple PHP versions

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/Constants.php Updates SDK version constant to 4.4.1
composer.json Adds PHP 8.2 to supported versions and updates package version
README.md Updates documentation with new version number
examples/doc-scan/app/Http/Controllers/HomeController.php Comments out brand ID configuration
.github/workflows/tests.yaml Refactors workflow to test PHP 8.2, 8.3, and 8.4 in a unified job

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

"license": "MIT",
"require": {
"php": "^7.4 || ^8.0 || ^8.1 || ^8.4",
"php": "^7.4 || ^8.0 || ^8.1 || ^8.2 || ^8.4",
Copy link
Preview

Copilot AI Sep 30, 2025

Choose a reason for hiding this comment

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

PHP 8.3 support is missing from the version constraint. The PR title mentions PHP 8.3 support, but it's not included in the composer.json requirements.

Suggested change
"php": "^7.4 || ^8.0 || ^8.1 || ^8.2 || ^8.4",
"php": "^7.4 || ^8.0 || ^8.1 || ^8.2 || ^8.3",

Copilot uses AI. Check for mistakes.

Comment on lines +56 to +58
- uses: actions/checkout@v4

- uses: shivammathur/setup-php@2.9.0
- uses: shivammathur/setup-php@v2
Copy link
Preview

Copilot AI Sep 30, 2025

Choose a reason for hiding this comment

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

Inconsistent action version pinning. checkout uses @v4 (major version) while setup-php uses @v2. Consider using specific versions like @v2.9.0 for reproducible builds or consistently use major versions.

Copilot uses AI. Check for mistakes.

with:
php-version: ${{ matrix.php-version }}
# Optional: Add extensions if needed, for example:
# extensions: mbstring, intl, gd
Copy link
Preview

Copilot AI Sep 30, 2025

Choose a reason for hiding this comment

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

[nitpick] Commented-out configuration example should be removed. This adds unnecessary clutter to the workflow file without providing functional value.

Suggested change
# extensions: mbstring, intl, gd

Copilot uses AI. Check for mistakes.

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.

1 participant