updated packages
This commit is contained in:
10
vendor/symfony/var-dumper/Caster/Caster.php
vendored
10
vendor/symfony/var-dumper/Caster/Caster.php
vendored
@@ -51,7 +51,7 @@ class Caster
|
||||
if ($hasDebugInfo) {
|
||||
$a = $obj->__debugInfo();
|
||||
} elseif ($obj instanceof \Closure) {
|
||||
$a = array();
|
||||
$a = [];
|
||||
} else {
|
||||
$a = (array) $obj;
|
||||
}
|
||||
@@ -60,10 +60,10 @@ class Caster
|
||||
}
|
||||
|
||||
if ($a) {
|
||||
static $publicProperties = array();
|
||||
static $publicProperties = [];
|
||||
|
||||
$i = 0;
|
||||
$prefixedKeys = array();
|
||||
$prefixedKeys = [];
|
||||
foreach ($a as $k => $v) {
|
||||
if (isset($k[0]) ? "\0" !== $k[0] : \PHP_VERSION_ID >= 70200) {
|
||||
if (!isset($publicProperties[$class])) {
|
||||
@@ -104,7 +104,7 @@ class Caster
|
||||
*
|
||||
* @return array The filtered array
|
||||
*/
|
||||
public static function filter(array $a, $filter, array $listedProperties = array(), &$count = 0)
|
||||
public static function filter(array $a, $filter, array $listedProperties = [], &$count = 0)
|
||||
{
|
||||
$count = 0;
|
||||
|
||||
@@ -114,7 +114,7 @@ class Caster
|
||||
if (null === $v) {
|
||||
$type |= self::EXCLUDE_NULL & $filter;
|
||||
$type |= self::EXCLUDE_EMPTY & $filter;
|
||||
} elseif (false === $v || '' === $v || '0' === $v || 0 === $v || 0.0 === $v || array() === $v) {
|
||||
} elseif (false === $v || '' === $v || '0' === $v || 0 === $v || 0.0 === $v || [] === $v) {
|
||||
$type |= self::EXCLUDE_EMPTY & $filter;
|
||||
}
|
||||
if ((self::EXCLUDE_NOT_IMPORTANT & $filter) && !\in_array($k, $listedProperties, true)) {
|
||||
|
||||
Reference in New Issue
Block a user