Commit 9d6f4686 authored by TheBigB's avatar TheBigB
Browse files

Fix to support 5.5

parent 6a103b95
......@@ -25,7 +25,7 @@ class CurlyOptions
{
#region // Mapping between property names and cURL constants
const OPTION_MAP = [
private static $__optionMap = [
'followRedirects' => CURLOPT_FOLLOWLOCATION,
'maxRedirects' => CURLOPT_MAXREDIRS,
'followPostRedirects' => CURLOPT_POSTREDIR,
......@@ -712,7 +712,7 @@ class CurlyOptions
*/
public function toArray($useNativeCurlConstants = true)
{
$map = self::OPTION_MAP;
$map = self::$__optionMap;
$class = new ReflectionClass(get_class());
$array = [];
......
......@@ -19,7 +19,7 @@ abstract class AbstractHandler
const ON_READ = 'onRead';
const ON_WRITE = 'onWrite';
const VALID_EVENTS = [ self::ON_HEADER, self::ON_PROGRESS, self::ON_READ, self::ON_WRITE ];
private static $validEvents = [ self::ON_HEADER, self::ON_PROGRESS, self::ON_READ, self::ON_WRITE ];
/**
* Should return an array with the function names of the events that are implemented. The only supported events are:
......@@ -41,7 +41,7 @@ abstract class AbstractHandler
{
foreach ($this->getImplemented() as $option)
{
if (!in_array($option, self::VALID_EVENTS))
if (!in_array($option, self::$validEvents))
{
continue;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment