composer update

This commit is contained in:
2020-12-06 10:28:55 +00:00
parent 69d92960d9
commit 09413522bb
1596 changed files with 60456 additions and 39587 deletions
+15 -5
View File
@@ -94,7 +94,7 @@ class SerializableClosure implements Serializable
public function getReflector()
{
if ($this->reflector === null) {
$this->reflector = new ReflectionClosure($this->closure, $this->code);
$this->reflector = new ReflectionClosure($this->closure);
$this->code = null;
}
@@ -132,7 +132,7 @@ class SerializableClosure implements Serializable
if($scope = $reflector->getClosureScopeClass()){
$scope = $scope->name;
}
} elseif($reflector->isScopeRequired()) {
} else {
if($scope = $reflector->getClosureScopeClass()){
$scope = $scope->name;
}
@@ -260,9 +260,7 @@ class SerializableClosure implements Serializable
$this->code['this'] = null;
}
if ($this->code['scope'] !== null || $this->code['this'] !== null) {
$this->closure = $this->closure->bindTo($this->code['this'], $this->code['scope']);
}
$this->closure = $this->closure->bindTo($this->code['this'], $this->code['scope']);
if(!empty($this->code['objects'])){
foreach ($this->code['objects'] as $item){
@@ -421,6 +419,9 @@ class SerializableClosure implements Serializable
continue;
}
$property->setAccessible(true);
if (PHP_VERSION >= 7.4 && !$property->isInitialized($instance)) {
continue;
}
$value = $property->getValue($instance);
if(is_array($value) || is_object($value)){
static::wrapClosures($value, $storage);
@@ -482,6 +483,9 @@ class SerializableClosure implements Serializable
continue;
}
$property->setAccessible(true);
if (PHP_VERSION >= 7.4 && !$property->isInitialized($data)) {
continue;
}
$value = $property->getValue($data);
if(is_array($value) || is_object($value)){
static::unwrapClosures($value, $storage);
@@ -563,6 +567,9 @@ class SerializableClosure implements Serializable
continue;
}
$property->setAccessible(true);
if (PHP_VERSION >= 7.4 && !$property->isInitialized($data)) {
continue;
}
$item = $property->getValue($data);
if ($item instanceof SerializableClosure || ($item instanceof SelfReference && $item->hash === $this->code['self'])) {
$this->code['objects'][] = array(
@@ -655,6 +662,9 @@ class SerializableClosure implements Serializable
continue;
}
$property->setAccessible(true);
if (PHP_VERSION >= 7.4 && !$property->isInitialized($instance)) {
continue;
}
$value = $property->getValue($instance);
if(is_array($value) || is_object($value)){
$this->mapByReference($value);