Skip to content
This repository was archived by the owner on Jan 6, 2024. It is now read-only.

Commit 0c8377f

Browse files
authored
Merge pull request #52 from php-http/drop-php5
Drop PHP <7.1
2 parents 54181ff + 871df65 commit 0c8377f

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

.travis.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,8 @@ cache:
77
- $HOME/.composer/cache/files
88

99
php:
10-
- 5.5
11-
- 5.6
12-
- 7.0
1310
- 7.1
14-
- hhvm
11+
- 7.2
1512

1613
env:
1714
global:
@@ -26,7 +23,7 @@ matrix:
2623
- php: hhvm
2724
fast_finish: true
2825
include:
29-
- php: 5.5
26+
- php: 7.1
3027
env: COMPOSER_FLAGS="--prefer-stable --prefer-lowest" COVERAGE=true TEST_COMMAND="composer test-ci"
3128

3229
before_install:

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
}
1616
],
1717
"require": {
18-
"php": "^5.5 || ^7.0",
18+
"php": "^7.1",
1919
"php-http/httplug": "^1.0",
2020
"guzzlehttp/guzzle": "^6.0"
2121
},

src/Promise.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public function wait($unwrap = true)
9595
$this->promise->wait(false);
9696

9797
if ($unwrap) {
98-
if ($this->getState() == self::REJECTED) {
98+
if (self::REJECTED == $this->getState()) {
9999
throw $this->exception;
100100
}
101101

0 commit comments

Comments
 (0)