Skip to content

3.x preparation : Make httplug optional, depends on psr18 #43

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

Merged
merged 4 commits into from
Feb 16, 2019

Conversation

joelwurtz
Copy link
Member

This allow library relying on psr18 only to use this tests with requiring httplug 2.0 (but it would still be compatible)

We should create a 3.x version after this is merged

Copy link
Contributor

@dbu dbu left a comment

Choose a reason for hiding this comment

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

thanks!
you need to adjust the branch-alias in composer.json

* @param array $options
*/
protected function assertResponse($response, array $options = [])
protected function assertResponse(ResponseInterface $response, array $options = [])
Copy link
Contributor

Choose a reason for hiding this comment

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

the explicit assertion would lead to a phpunit failure instead of a full php type explosion. but the client interface has a return type declaration, so it should be impossible to ever have anything else than a ResponseInterface, right? if thats the case then the change is fine for me.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, php will fail before that so we are pretty safe here

@@ -15,13 +15,18 @@
}
Copy link
Contributor

Choose a reason for hiding this comment

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

the branch alias in the composer.json file needs to be updated

Copy link
Member Author

Choose a reason for hiding this comment

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

👍 totally forget this comment my bad, should be good

@joelwurtz
Copy link
Member Author

Are we good to merge this ?

@joelwurtz
Copy link
Member Author

Tests failure is expected, (as library need to update and do changes to fix their tests with the new version), can we merge this ? It's a blocker for advancing on socket-client v2.

composer.json Outdated
"php": ">=5.4",
"phpunit/phpunit": "^4.8.35 || ^5.4.3 || ^6.0 || ^7.0",
"php-http/httplug": "^1.0 || ^2.0",
"php": ">=7.1",
Copy link
Contributor

Choose a reason for hiding this comment

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

lets use ^7.1 here, we don't know if we support php 8...

@dbu
Copy link
Contributor

dbu commented Feb 4, 2019

looks good to me except the php version constraint. can you update that and then merge this into master?

@joelwurtz
Copy link
Member Author

PHP Version constraint updated, tested those change with socket-client and works fine, will merge it, use dev-master in socket-client ATM and release a new version once everything looks ok (i don't think there is anything to add but just in case)

@joelwurtz joelwurtz merged commit 48bfe2d into master Feb 16, 2019
@joelwurtz joelwurtz deleted the feature/psr18-only branch February 16, 2019 21: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.

2 participants