🔧
This commit is contained in:
@@ -378,6 +378,10 @@ class Native implements Serializable
|
||||
continue;
|
||||
}
|
||||
|
||||
if (PHP_VERSION >= 8.1 && $property->isReadOnly()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$item = $property->getValue($data);
|
||||
|
||||
if ($item instanceof SerializableClosure || $item instanceof UnsignedSerializableClosure || ($item instanceof SelfReference && $item->hash === $this->code['self'])) {
|
||||
@@ -500,6 +504,10 @@ class Native implements Serializable
|
||||
continue;
|
||||
}
|
||||
|
||||
if (PHP_VERSION >= 8.1 && $property->isReadOnly() && $property->class !== $reflection->name) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$value = $property->getValue($instance);
|
||||
|
||||
if (is_array($value) || is_object($value)) {
|
||||
|
||||
@@ -806,7 +806,7 @@ class ReflectionClosure extends ReflectionFunction
|
||||
}
|
||||
|
||||
/**
|
||||
* The the hash of the current file name.
|
||||
* The hash of the current file name.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
@@ -1135,10 +1135,10 @@ class ReflectionClosure extends ReflectionFunction
|
||||
if (--$open == 0) {
|
||||
if (! $structIgnore) {
|
||||
$structures[] = [
|
||||
'type' => $structType,
|
||||
'name' => $structName,
|
||||
'type' => $structType,
|
||||
'name' => $structName,
|
||||
'start' => $startLine,
|
||||
'end' => $endLine,
|
||||
'end' => $endLine,
|
||||
];
|
||||
}
|
||||
$structIgnore = false;
|
||||
|
||||
Reference in New Issue
Block a user