🔧
This commit is contained in:
@@ -21,10 +21,11 @@
|
||||
"php": "^7.3|^8.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"nesbot/carbon": "^2.61",
|
||||
"illuminate/support": "^8.0|^9.0|^10.0|^11.0",
|
||||
"nesbot/carbon": "^2.61|^3.0",
|
||||
"pestphp/pest": "^1.21.3",
|
||||
"phpstan/phpstan": "^1.8.2",
|
||||
"symfony/var-dumper": "^5.4.11"
|
||||
"symfony/var-dumper": "^5.4.11|^6.2.0|^7.0.0"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
|
||||
@@ -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