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

Update to PHP 8 #5

Closed
wants to merge 4 commits into from
Closed

Update to PHP 8 #5

wants to merge 4 commits into from

Conversation

settermjd
Copy link
Contributor

This is a small PR designed to update the project to support the 8.0 release of PHP. It primarily updates composer.json so that the required packages work with the newer release. It also refactors a test which was failing.

This change, as well as requiring the PHP version requirement to be
updated, also required newer versions of some of the development and
deployment packages to be upgraded too.
With the upgrade to PHP 8 was the upgraded PHPUnit version. The old
version of the PHPUnit configuration file had some outdated
elements/attributes that the newest version doesn't support. Given that,
the configuration file was updated using phpunit.
While attempting to run the tests, testGetForecast consistently failed,
with the exception's error message saying that the BOM API had detected
the use of automation software during the request. Given that, and that
it may well not be necessary to actually make a live request, this
change updates the test to use a mock response with one of the fixture
files instead. It also improves the performance of the test.
Copy link
Member

Choose a reason for hiding this comment

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

Can you split out the changes to testGetForecast into a separate PR?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

This reverts commit e47e44f. I'm
reverting it to move it to a new PR, as requested by @kimpepper.
@settermjd
Copy link
Contributor Author

I'll fix the build errors this weekend.

@kimpepper
Copy link
Member

This is outdated now as PHP 8.1+ is supported.

@kimpepper kimpepper closed this Jan 12, 2024
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