-
Notifications
You must be signed in to change notification settings - Fork 1
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
Upgrade iguana
for PHP 8 compatibility
#46
Conversation
6c9d488
to
5a10079
Compare
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.
LGTM - can you check why the unit tests and php-cs-fixer aren't completing before merging though
I notice these are for PHP7.2 which we no longer deploy. We should probably add a PHP 8 to the matrix and remove 7.2 |
Ah, they are listed in some branch protection rules, so I'll remove them, but we should still add a PHP8 to the matrix (then I'll add those rules in) |
composer.json
Outdated
@@ -1,7 +1,7 @@ | |||
{ | |||
"config": { | |||
"platform": { | |||
"php": "7.4" | |||
"php": "8.2" |
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.
I'm not sure about this TBH. There are two places where we can add the platform, one where you can use ||
and one where you cannot. What happens here if we try to run composer install
in 7.4?
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.
Sorry, I thought I replied to this already.
It seems to work okay on my end when testing it on saluki 7.4.
Regardless, I changed it to match what we did in iguana
Since this is a library package, and intended to be installed as a dependency, I would not expect to have a |
@snim2 yeah, I'd expect the |
@snim2 Would you like me to rebase/resolve the conflicts before giving it another look? |
d0efa0d
to
ecff466
Compare
ecff466
to
fe07f50
Compare
This PR resolves the deprecation warning, by upgrading
iguana
to the latest version:How to Test
wp-content/plugins/govuk-components-plugin
chore/update-composer-dependencies