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

Specify PHP version with Composer #1776

Merged
merged 2 commits into from
Mar 8, 2022
Merged

Conversation

tigt
Copy link
Contributor

@tigt tigt commented Mar 5, 2022

When looking through the codebase, I often wondered what PHP features were fair game to use, such as http_response_code() instead of the easier-to-mess-up header('HTTP/…'). Specifying PHP’s minimum version in composer.json helps with questions like that, and should produce friendlier and easier-to-understand errors if the code is run with an older PHP runtime.

I set the version to the minimum that Guzzle 7.4 requires, since that looked like a safe bet.

When looking through the codebase, I often wondered what PHP features were fair game to use, such as `http_response_code()` instead of the easier-to-mess-up `header('HTTP/…')`. [Specifying PHP’s minimum version in `composer.json`](https://mikemadison.net/blog/2020/11/17/configuring-php-version-with-composer) helps with questions like that, and should produce friendlier and easier-to-understand errors if the code is run with an older PHP runtime.

I set the version to the minimum that [Guzzle 7.4](https://packagist.org/packages/guzzlehttp/guzzle#7.4.0) requires, since that looked like a safe bet.
@tkadlec tkadlec requested a review from jefflembeck March 7, 2022 15:11
composer.json Outdated Show resolved Hide resolved
Co-authored-by: Jeff Lembeck <jlembeck@gmail.com>
@jefflembeck jefflembeck merged commit f9e3fac into catchpoint:master Mar 8, 2022
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.

None yet

2 participants