Skip to content

Support PHP 8.5#335

Merged
jleonardolemos merged 1 commit intomasterfrom
drop-support-for-old-php-versions
Dec 30, 2025
Merged

Support PHP 8.5#335
jleonardolemos merged 1 commit intomasterfrom
drop-support-for-old-php-versions

Conversation

@jleonardolemos
Copy link
Collaborator

[v2.8.0]

Added

  • Support PHP 8.5

Removed

  • Support PHP 7.3, 7.4, 8.0
  • Support Laravel ~6.0, ~7.0

@jleonardolemos jleonardolemos merged commit 0db82d7 into master Dec 30, 2025
11 checks passed
@jleonardolemos jleonardolemos deleted the drop-support-for-old-php-versions branch December 30, 2025 14:59
Copy link

@amazon-q-developer amazon-q-developer bot left a comment

Choose a reason for hiding this comment

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

Review Summary

This PR aims to modernize the package by dropping support for older PHP and Laravel versions while adding PHP 8.5 support. However, there are several critical issues that need to be addressed:

Critical Issues:

  1. PHP 8.5 Premature Support: PHP 8.5 is not yet released (scheduled for November 2025), which will cause CI failures and mislead users about actual compatibility.
  2. Version Inconsistency: Documentation shows "Version 3" while changelog indicates v2.8.0, creating confusion about the versioning scheme.
  3. Dependency Gap: Missing orchestra/testbench ^7.0 constraint could cause dependency resolution issues.

Recommendations:

  • Remove PHP 8.5 from CI matrix and changelog until it's actually released
  • Align version numbering between documentation and changelog
  • Add missing testbench version constraint
  • Fix minor issues like missing newlines

The modernization effort is good, but the premature PHP 8.5 support claims need to be corrected before merge.


You can now have the agent implement changes and create commits directly on your pull request's source branch. Simply comment with /q followed by your request in natural language to ask the agent to make changes.

strategy:
matrix:
php-versions: ['7.3', '7.4', '8.0']
php-versions: ['8.1', '8.2', '8.3', '8.4', '8.5']

Choose a reason for hiding this comment

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

🛑 Premature Version Support: PHP 8.5 is not yet released and may cause CI failures. PHP 8.5 is scheduled for release in November 2025, but this workflow will fail until then because the version doesn't exist in setup-php action.

Suggested change
php-versions: ['8.1', '8.2', '8.3', '8.4', '8.5']
php-versions: ['8.1', '8.2', '8.3', '8.4']

"phpunit/phpunit": "^10.0|^11.0",
"squizlabs/php_codesniffer": "^2.5",
"orchestra/testbench": "^4.18|^6.21|^8.0|^9.0|^10.0",
"orchestra/testbench": "^6.21|^8.0|^9.0|^10.0",

Choose a reason for hiding this comment

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

🛑 Compatibility Gap: Missing orchestra/testbench version ^7.0 creates a gap between ^6.21 and ^8.0, potentially causing dependency resolution issues for Laravel 8.x projects.

Suggested change
"orchestra/testbench": "^6.21|^8.0|^9.0|^10.0",
"orchestra/testbench": "^6.21|^7.0|^8.0|^9.0|^10.0",

@@ -9,6 +9,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
- Support PHP 8.5

Choose a reason for hiding this comment

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

🛑 Premature Version Claim: Claiming PHP 8.5 support is misleading since PHP 8.5 is not yet released (scheduled for November 2025). This could confuse users about actual compatibility.

Suggested change
- Support PHP 8.5
- Support PHP 8.4

|-----------------|-------------------|------------------------|
| Version 1 | >= 7.1.3 | 5.6, 6.x, 7.x, 8.x |
| Version 2 | >= 7.3 | 6.20.12+, 7.30.4+, 8.22.1+, 9.x, 10.x, 11.x, 12.x |
| Version 3 | >= 8.1 | 8.22.1+, 9.x, 10.x, 11.x, 12.x |

Choose a reason for hiding this comment

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

🛑 Version Inconsistency: The documentation shows "Version 3" for PHP >= 8.1, but the changelog indicates this is v2.8.0. This creates confusion about the actual version scheme and could mislead users about compatibility.

Suggested change
| Version 3 | >= 8.1 | 8.22.1+, 9.x, 10.x, 11.x, 12.x |
| Version 2.8 | >= 8.1 | 8.22.1+, 9.x, 10.x, 11.x, 12.x |


- name: Run phpunit
run: XDEBUG_MODE=coverage vendor/bin/phpunit --color="always" --coverage-text --configuration=phpunit-ci.xml No newline at end of file
run: XDEBUG_MODE=coverage vendor/bin/phpunit --coverage-text --configuration=phpunit-ci.xml No newline at end of file

Choose a reason for hiding this comment

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

Missing newline at end of file. This can cause issues with some tools and violates POSIX standards.

Suggested change
run: XDEBUG_MODE=coverage vendor/bin/phpunit --coverage-text --configuration=phpunit-ci.xml
run: XDEBUG_MODE=coverage vendor/bin/phpunit --coverage-text --configuration=phpunit-ci.xml

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