Skip to content

Commit 123f4a4

Browse files
committed
Only iterate if parents is set
1 parent 447c759 commit 123f4a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/php/lang/XPClass.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ private function virtual($reflect, $parents= true) {
304304
foreach ($matches as $match) {
305305
$r[$match[3]]= ['-read' === $match[1] ? MODIFIER_READONLY : 0, $match[2]];
306306
}
307-
} while ($reflect= $reflect->getParentclass());
307+
} while ($parents && ($reflect= $reflect->getParentclass()));
308308

309309
return $r;
310310
}

0 commit comments

Comments
 (0)