Skip to content

Commit 244f085

Browse files
committed
Restore PHP5.3 compatibility
1 parent 489e83c commit 244f085

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

Sage.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ class Sage
212212
* Default:
213213
* array()
214214
*/
215-
public static $aliases = [];
215+
public static $aliases = array();
216216

217217
public static $simplify = false;
218218

@@ -351,7 +351,7 @@ public static function dump($data = null)
351351

352352
self::_init();
353353

354-
[$names, $modifiers, $callee, $previousCaller, $miniTrace] = self::_getCalleeInfo();
354+
list($names, $modifiers, $callee, $previousCaller, $miniTrace) = self::_getCalleeInfo();
355355

356356
// auto-detect mode if not explicitly set
357357
if ($enabledModeOriginal === true) {

inc/SageParser.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class SageParser
1616
/** @var string */
1717
private static $_marker;
1818

19-
private static $parsingAlternative = [];
19+
private static $parsingAlternative = array();
2020

2121
private static $_placeFullStringInValue = false;
2222

@@ -420,7 +420,7 @@ private static function _parse_object(&$variable, SageVariableData $variableData
420420
$variableData->size = 0;
421421

422422
$extendedValue = array();
423-
static $publicProperties = [];
423+
static $publicProperties = array();
424424
if (! isset($publicProperties[$className])) {
425425
$reflectionClass = new ReflectionClass($className);
426426
foreach ($reflectionClass->getProperties(ReflectionProperty::IS_PUBLIC) as $prop) {

inc/shorthands.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ function sage()
5757

5858
$params = func_get_args();
5959

60-
return call_user_func_array(['Sage', 'dump'], $params);
60+
return call_user_func_array(array('Sage', 'dump'), $params);
6161
}
6262
}
6363

sage.phar

24 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)