Skip to content

Commit d7116bf

Browse files
committed
Bump to a future major version; allow only HTTPlug 2
1 parent 35720b0 commit d7116bf

File tree

3 files changed

+5
-11
lines changed

3 files changed

+5
-11
lines changed

.travis.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
language: php
2-
32
sudo: false
43

5-
dist: trusty
6-
74
cache:
85
directories:
96
- $HOME/.composer/cache/files
@@ -23,9 +20,6 @@ matrix:
2320
env: COMPOSER_FLAGS="--prefer-stable --prefer-lowest" DEPENDENCIES="doctrine/instantiator:^1.1"
2421

2522
# Test the latest stable release
26-
- php: 5.4
27-
- php: 5.5
28-
- php: 5.6
2923
- php: 7.0
3024
- php: 7.1
3125
- php: 7.2

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@
1111
}
1212
],
1313
"require": {
14-
"php": "^5.4 || ^7.0",
15-
"php-http/httplug": "^1.1 || ^2.0",
14+
"php": "^7.0",
15+
"php-http/httplug": "^2.0",
1616
"php-http/message-factory": "^1.0",
1717
"php-http/message": "^1.6",
1818
"symfony/options-resolver": "^2.6 || ^3.0 || ^4.0"
1919
},
2020
"require-dev": {
21-
"phpspec/phpspec": "^2.5 || ^3.4 || ^4.2",
21+
"phpspec/phpspec": "^4.2",
2222
"guzzlehttp/psr7": "^1.4"
2323
},
2424
"suggest": {
@@ -37,7 +37,7 @@
3737
},
3838
"extra": {
3939
"branch-alias": {
40-
"dev-master": "1.8-dev"
40+
"dev-master": "2.0-dev"
4141
}
4242
}
4343
}

src/HttpMethodsClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ public function send($method, $uri, array $headers = [], $body = null)
198198
*
199199
* {@inheritdoc}
200200
*/
201-
public function sendRequest(RequestInterface $request)
201+
public function sendRequest(RequestInterface $request): ResponseInterface
202202
{
203203
return $this->httpClient->sendRequest($request);
204204
}

0 commit comments

Comments
 (0)