Skip to content

Commit

Permalink
Restore PHP5.3 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
raveren committed Jul 30, 2023
1 parent 489e83c commit 244f085
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Sage.php
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ class Sage
* Default:
* array()
*/
public static $aliases = [];
public static $aliases = array();

public static $simplify = false;

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

self::_init();

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

// auto-detect mode if not explicitly set
if ($enabledModeOriginal === true) {
Expand Down
4 changes: 2 additions & 2 deletions inc/SageParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class SageParser
/** @var string */
private static $_marker;

private static $parsingAlternative = [];
private static $parsingAlternative = array();

private static $_placeFullStringInValue = false;

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

$extendedValue = array();
static $publicProperties = [];
static $publicProperties = array();
if (! isset($publicProperties[$className])) {
$reflectionClass = new ReflectionClass($className);
foreach ($reflectionClass->getProperties(ReflectionProperty::IS_PUBLIC) as $prop) {
Expand Down
2 changes: 1 addition & 1 deletion inc/shorthands.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function sage()

$params = func_get_args();

return call_user_func_array(['Sage', 'dump'], $params);
return call_user_func_array(array('Sage', 'dump'), $params);
}
}

Expand Down
Binary file modified sage.phar
Binary file not shown.

0 comments on commit 244f085

Please sign in to comment.