Skip to content

Require PHP 8.0 for compatibility with firebase/php-jwt#47

Open
fadrian06 wants to merge 3 commits into
leafsphp:v4.xfrom
fadrian06:require-php80
Open

Require PHP 8.0 for compatibility with firebase/php-jwt#47
fadrian06 wants to merge 3 commits into
leafsphp:v4.xfrom
fadrian06:require-php80

Conversation

@fadrian06

Copy link
Copy Markdown
Contributor

What kind of change does this PR introduce? (pls check at least one)

  • Bugfix
  • Feature
  • Code style update
  • Refactor
  • Build-related changes
  • Other, please describe below

Description

This PR fixes an issue when trying to install this library in a project using PHP 7.4, as firebase/php-jwt has dropped support for PHP 7.4. If the breaking changes introduced by this PR prevent it from being merged, I’ll remove it and look for alternatives to firebase/php-jwt that support PHP 7.4.

Does this PR introduce a breaking change? (check one)

  • Yes
  • No

Copilot AI review requested due to automatic review settings June 21, 2026 04:55

Copilot AI left a comment

Copy link
Copy Markdown

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 updates the package’s minimum PHP version to avoid installation failures now that firebase/php-jwt no longer supports PHP 7.4.

Changes:

  • Add a PHP platform requirement (php >= 8.0) to composer.json.
  • Update Rector configuration to target PHP 8.0 downgrade set and adjust import-name handling configuration.

Reviewed changes

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

File Description
composer.json Declares PHP 8+ as a requirement to align with dependency constraints.
rector.php Updates Rector downgrade set to PHP 8.0 and modifies import name configuration.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread rector.php
Comment thread composer.json
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.

3 participants