-
Notifications
You must be signed in to change notification settings - Fork 6
Improve PHP 8.4 support #6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve PHP 8.4 support #6
Conversation
|
Hi @BrianHenryIE, thank you very much for this maintenance fix! I'm pretty out of PHP development nowadays, so if you could answer me this question: As I understand it, you now allowed two major versions of the Thanks for clarifying this for me 🙏 |
There was a problem hiding this 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 pull request improves PHP 8.4 compatibility by updating the stephenhill/base58 dependency to allow both version 1.x and 2.x. The change addresses a deprecation warning in PHP 8.4 regarding implicitly nullable parameters in the Base58 library constructor.
Key changes:
- Updated
stephenhill/base58version constraint from^1.1to^1.1|^2to allow version 2.x - Updated composer.lock file with new content hash and minor metadata updates (plugin API version, stability flags format)
Reviewed changes
Copilot reviewed 1 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| composer.json | Updated stephenhill/base58 dependency constraint to allow both v1.1+ and v2.x |
| composer.lock | Regenerated lock file with updated content hash and Composer metadata (still locked to v1.1.5) |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Briefly: it works! But if you were to require only Your package uses two relevant functions:
From the perspective of this project consuming that package, there's no change. It's The code in this package does not itself require PHP 8.1/+. I would allow both FYI: I'm forever working on: BrianHenryIE/bh-wp-bitcoin-gateway WordPress plugin. It was working three years ago and since then it's been a construction site! Thanks for this library. I hope that's clearly written, I'm a little sick (a mild cough, it'll be gone soon). |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
0589d75 to
750bdcb
Compare
|
Rebased for merging. |
|
Thank you very much for the explainer, @BrianHenryIE! Especially the part about v2 requiring PHP 8.1 👍 |
|
Published as v1.4.2. |
composer require stephenhill/base58:"^1.1|^2"Tests pass.