summaryrefslogtreecommitdiff
path: root/lib/facebook-graph-sdk/src/Facebook/HttpClients/FacebookStream.php
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2018-04-26 01:00:12 +0200
committeremkael <emkael@tlen.pl>2018-04-26 01:00:12 +0200
commit4b8a9a5189a625bf99fedec7fd31f6e146410a14 (patch)
treea29759d5f0f0c29f07c89c59f6b5cf38407d1470 /lib/facebook-graph-sdk/src/Facebook/HttpClients/FacebookStream.php
parentab82beef33f4c196383a81213dcdff4ebe9447ae (diff)
Update FB API library
Diffstat (limited to 'lib/facebook-graph-sdk/src/Facebook/HttpClients/FacebookStream.php')
-rw-r--r--lib/facebook-graph-sdk/src/Facebook/HttpClients/FacebookStream.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/facebook-graph-sdk/src/Facebook/HttpClients/FacebookStream.php b/lib/facebook-graph-sdk/src/Facebook/HttpClients/FacebookStream.php
index 95aa22e..3f39988 100644
--- a/lib/facebook-graph-sdk/src/Facebook/HttpClients/FacebookStream.php
+++ b/lib/facebook-graph-sdk/src/Facebook/HttpClients/FacebookStream.php
@@ -1,6 +1,6 @@
<?php
/**
- * Copyright 2014 Facebook, Inc.
+ * Copyright 2017 Facebook, Inc.
*
* You are hereby granted a non-exclusive, worldwide, royalty-free license to
* use, copy, modify, and distribute this software in source code or binary
@@ -41,7 +41,7 @@ class FacebookStream
/**
* @var array Response headers from the stream wrapper
*/
- protected $responseHeaders;
+ protected $responseHeaders = [];
/**
* Make a new context stream reference instance
@@ -56,7 +56,7 @@ class FacebookStream
/**
* The response headers from the stream wrapper
*
- * @return array|null
+ * @return array
*/
public function getResponseHeaders()
{
@@ -73,7 +73,7 @@ class FacebookStream
public function fileGetContents($url)
{
$rawResponse = file_get_contents($url, false, $this->stream);
- $this->responseHeaders = $http_response_header;
+ $this->responseHeaders = $http_response_header ?: [];
return $rawResponse;
}