Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b54997d

Browse filesBrowse files
committed
bug #34126 [VarDumper] fix infinite recursion (nicolas-grekas)
This PR was merged into the 4.4 branch. Discussion ---------- [VarDumper] fix infinite recursion | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | - | License | MIT | Doc PR | - Commits ------- 56d9f47 [VarDumper] fix infinite recursion
2 parents 8eb17aa + 56d9f47 commit b54997d
Copy full SHA for b54997d

File tree

2 files changed

+2
-2
lines changed
Filter options

2 files changed

+2
-2
lines changed

‎src/Symfony/Component/VarDumper/Caster/ClassStub.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/VarDumper/Caster/ClassStub.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function __construct(string $identifier, $callable = null)
6262
}
6363

6464
if (null !== $callable && $r instanceof \ReflectionFunctionAbstract) {
65-
$s = ReflectionCaster::castFunctionAbstract($r, [], new Stub(), true);
65+
$s = ReflectionCaster::castFunctionAbstract($r, [], new Stub(), true, Caster::EXCLUDE_VERBOSE);
6666
$s = ReflectionCaster::getSignature($s);
6767

6868
if ('()' === substr($identifier, -2)) {

‎src/Symfony/Component/VarDumper/Caster/ReflectionCaster.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/VarDumper/Caster/ReflectionCaster.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ public static function castFunctionAbstract(\ReflectionFunctionAbstract $c, arra
212212
$a[$prefix.'parameters'] = new EnumStub($a[$prefix.'parameters']);
213213
}
214214

215-
if ($v = $c->getStaticVariables()) {
215+
if (!($filter & Caster::EXCLUDE_VERBOSE) && $v = $c->getStaticVariables()) {
216216
foreach ($v as $k => &$v) {
217217
if (\is_object($v)) {
218218
$a[$prefix.'use']['$'.$k] = new CutStub($v);

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.