Skip to content

Commit 71c3114

Browse files
committed
handled change to gettype api in php 7.2
1 parent 8ead9df commit 71c3114

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/RESTFul/HTTPResponse.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ function flush($httpAccept = null){
9898

9999
// write data
100100
$dataType = gettype($this->data);
101-
if($dataType == "unknown type"){
101+
if($dataType == "unknown type" || $dataType == 'resource (closed)'){
102102
$this->exitWithError("Unkown type of data in HTTPResponse");
103103
}
104104

0 commit comments

Comments
 (0)