From 5d9e01ebc5ebb565b1ed16bd7cc3e929ff1a2355 Mon Sep 17 00:00:00 2001 From: Samuel Nogueira Date: Mon, 26 Mar 2018 19:11:47 +0100 Subject: [PATCH] Fix #36: Calls to assert() now pass a boolean condition instead of string (PHP 7.2 compat) --- .travis.yml | 1 + src/PromiseCore.php | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 928b418..fd4905e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,6 +11,7 @@ php: - 5.6 - 7.0 - 7.1 + - 7.2 - hhvm env: diff --git a/src/PromiseCore.php b/src/PromiseCore.php index dbc89f6..4e6f571 100644 --- a/src/PromiseCore.php +++ b/src/PromiseCore.php @@ -76,8 +76,8 @@ public function __construct( $handle, ResponseBuilder $responseBuilder ) { - assert('is_resource($handle)'); - assert('get_resource_type($handle) === "curl"'); + assert(is_resource($handle)); + assert(get_resource_type($handle) === "curl"); $this->request = $request; $this->handle = $handle;