Skip to content

Remove the firebase/php-jwt dependency#335

Draft
jakubtobiasz wants to merge 4 commits intomainfrom
claude/firebase-jwt-7-support-yUlgn
Draft

Remove the firebase/php-jwt dependency#335
jakubtobiasz wants to merge 4 commits intomainfrom
claude/firebase-jwt-7-support-yUlgn

Conversation

@jakubtobiasz
Copy link
Copy Markdown
Member

Summary

This PR upgrades the plugin to support Sylius 2.0 and PHP 8.2, while maintaining backward compatibility information for users on older versions.

Key Changes

  • Updated minimum PHP version requirement from ^8.1 to ^8.2
  • Updated Sylius dependency from ^1.12 to ^2.0
  • Added a note in the README documenting that version 2.x of the plugin supports Sylius 1.x
  • Expanded firebase/php-jwt dependency constraint to support both ^6.10 and ^7.0 versions

Notable Details

  • The README now clearly communicates the version mapping between the plugin and Sylius versions
  • The JWT library constraint is more flexible, allowing users to upgrade to the latest major version while maintaining compatibility with the previous version

https://claude.ai/code/session_018f3bgBj7bQd4XmWVDPnDtb

- Broaden firebase/php-jwt constraint from ^6.10 to ^6.10 || ^7.0 to maintain BC while supporting the new major version
- Update README requirements table to reflect current main branch (Sylius ^2.0, PHP ^8.2)
- Add note that Sylius 1.x support is available in plugin version 2.x

https://claude.ai/code/session_018f3bgBj7bQd4XmWVDPnDtb
- Add NSS database setup step before BuildTestAppAction to prevent the
  "failed to install the local Certificate Authority: no Firefox and/or
  Chrome/Chromium security databases found" mkcert error in CI
- Remove firebase/php-jwt from require: it is not used directly anywhere
  in the plugin source — it is a transitive dependency pulled in via
  sylius/api-bundle → lexik/jwt-authentication-bundle

https://claude.ai/code/session_018f3bgBj7bQd4XmWVDPnDtb
@jakubtobiasz jakubtobiasz changed the title Upgrade to Sylius 2.0 and PHP 8.2 Remove the firebase/php-jwt dependency Feb 27, 2026
The match expression covers all BlikAliasAction enum cases explicitly
(APPLY and REGISTER), making the default arm unreachable. PHPStan
correctly flags this as match.alwaysTrue. Remove the redundant default
arm to fix the static analysis failure.

https://claude.ai/code/session_018f3bgBj7bQd4XmWVDPnDtb
Two bugs were causing "session not created: Chrome instance exited":

1. createPantherClient() was called with [] and a ChromeOptions object
   as plain array values (integer keys 0/1) inside the first argument,
   so the options were never applied. Remove the dead ChromeOptions code
   and call createPantherClient correctly.

2. --disable-gpu was missing from PANTHER_CHROME_ARGUMENTS. This flag
   is required for stable headless Chrome in CI environments (GitHub
   Actions / Docker) alongside --disable-dev-shm-usage.

https://claude.ai/code/session_018f3bgBj7bQd4XmWVDPnDtb
@jakubtobiasz jakubtobiasz force-pushed the claude/firebase-jwt-7-support-yUlgn branch from cecb359 to 148159e Compare February 28, 2026 13:22
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.

2 participants