Skip to content
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

Install PHP 5.6 compatible libraries #25

Merged
merged 3 commits into from
Feb 12, 2020
Merged

Install PHP 5.6 compatible libraries #25

merged 3 commits into from
Feb 12, 2020

Conversation

pierlon
Copy link
Contributor

@pierlon pierlon commented Feb 10, 2020

PHP 5.6 based Travis builds are failing due to PHP 7 libraries being installed. This should have been caught when doing composer install but platform requisites are being ignored.

Copy link
Contributor

@derekherman derekherman left a comment

Choose a reason for hiding this comment

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

The way we handle this in the wp-foo-bar plugin is to load different versions of the packages based on the php version of the platform. The issue is that I'm not checking int he lock file cause I'm not sure that it would still work with both versions of PHP.

https://github.com/xwp/wp-foo-bar/blob/develop/composer.json#L12:L27

For now this solution works but I think generally we should migrate to the new scaffolding at some point soon as there are a lot of benefits in there other.

@@ -148,13 +154,6 @@ public function test_get_item() {
'color' => '#D9E8EF',
'description' => '',
'alt_description' => 'black motorcycle',
'urls' => [
Copy link
Contributor

Choose a reason for hiding this comment

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

@pierlon Why remove this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Recent Travis build failed because the urls returned from the Unsplash API were different, so I'm only checking to ensure that the image types in the urls array are returned.

I was thinking of testing the host part of the url for each but that seemed like overkill.

@spacedmonkey spacedmonkey merged commit a64e3a5 into develop Feb 12, 2020
@pierlon pierlon deleted the fix/php-deps branch February 12, 2020 16:57
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