Skip to content

Commit 3878fec

Browse files
authored
Merge pull request #6578 from kenjis/update-kint-421
fix: update ThirdParty Kint to 4.2.1
2 parents 106102f + b50e566 commit 3878fec

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

system/ThirdParty/Kint/Parser/Parser.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,10 @@ public function haltParse()
192192

193193
public function childHasPath(InstanceValue $parent, Value $child)
194194
{
195+
if ('__PHP_Incomplete_Class' === $parent->classname) {
196+
return false;
197+
}
198+
195199
if ('object' === $parent->type && (null !== $parent->access_path || $child->static || $child->const)) {
196200
if (Value::ACCESS_PUBLIC === $child->access) {
197201
return true;
@@ -435,7 +439,7 @@ private function parseObject(&$var, Value $o)
435439

436440
$rep = new Representation('Properties');
437441

438-
if (KINT_PHP74) {
442+
if (KINT_PHP74 && '__PHP_Incomplete_Class' != $object->classname) {
439443
$rprops = $reflector->getProperties();
440444

441445
foreach ($rprops as $rprop) {

0 commit comments

Comments
 (0)