Skip to content

Commit 5d9e01e

Browse files
author
Samuel Nogueira
committed
Fix #36: Calls to assert() now pass a boolean condition instead of string (PHP 7.2 compat)
1 parent 9c1e6a0 commit 5d9e01e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ php:
1111
- 5.6
1212
- 7.0
1313
- 7.1
14+
- 7.2
1415
- hhvm
1516

1617
env:

src/PromiseCore.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ public function __construct(
7676
$handle,
7777
ResponseBuilder $responseBuilder
7878
) {
79-
assert('is_resource($handle)');
80-
assert('get_resource_type($handle) === "curl"');
79+
assert(is_resource($handle));
80+
assert(get_resource_type($handle) === "curl");
8181

8282
$this->request = $request;
8383
$this->handle = $handle;

0 commit comments

Comments
 (0)