Skip to content

Conversation

@io238
Copy link

@io238 io238 commented Apr 21, 2021

Adding support for Guzzle version 7. Requires PHP versions 7.4 or 8.0

This PR aims to fix previous PR #8

@ossycodes
Copy link

@pfrenssen @claudiu-cristea @brummbar @idimopoulos please review and merge...

sudo: false

env:
- TEST=PHP_CodeSniffer
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why is PHP CS check dropped?

- 7.0
- 7.1
- 7.2
- 7.4
Copy link
Collaborator

Choose a reason for hiding this comment

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

7.3 is still supported

Copy link
Owner

Choose a reason for hiding this comment

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

Let's keep supporting the old versions of PHP.

},
"require": {
"guzzlehttp/guzzle": "~6.0"
"php": "^7.4|^8.0",
Copy link
Collaborator

Choose a reason for hiding this comment

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

7.3? Also we should use double pipe as OR operator as | is deprecated. See composer/composer#6755

Copy link
Owner

Choose a reason for hiding this comment

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

I don't want to impose a change of PHP version to our users. They might still be on older versions of PHP for legacy reasons.

use Psr\Http\Message\RequestInterface;
use Psr\Http\Message\ResponseInterface;


Copy link
Collaborator

Choose a reason for hiding this comment

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

Un-needed new line

];
}


Copy link
Collaborator

Choose a reason for hiding this comment

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

Please remove all these lines, they’re violating the coding standards

*/
class HttpClientTest extends TestCase
{
class HttpClientTest extends TestCase {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Curly bracket should be on the following line

},
"require-dev": {
"phpunit/phpunit": "^5.0|^6.0|^7.0",
"phpunit/phpunit": ">5.0",
Copy link
Collaborator

Choose a reason for hiding this comment

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

The minimum PHPUnit version supporting PHP 7.3 is 7. See https://phpunit.de/supported-versions.html. We have to support PHPUnit 7, 8, 9

@ossycodes
Copy link

@io238 please go through the reviews by @claudiu-cristea so it can be merged.

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.

4 participants