8000 minor #52755 [VarDumper]  remove not needed method existance check (x… · symfony/symfony@5dac6a1 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5dac6a1

Browse files
committed
minor #52755 [VarDumper]  remove not needed method existance check (xabbuh)
This PR was merged into the 7.0 branch. Discussion ---------- [VarDumper]  remove not needed method existance check | Q | A | ------------- | --- | Branch? | 7.0 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | | License | MIT The `getDebugInfo()` method is part of the `Template` class since Twig 1.25.0. Commits ------- 38d4537 remove not needed method existance check
2 parents 6c851e2 + 38d4537 commit 5dac6a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/VarDumper/Caster/ExceptionCaster.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ public static function castFrameStub(FrameStub $frame, array $a, Stub $stub, boo
214214
$ellipsis = $ellipsis->attr['ellipsis'] ?? 0;
215215

216216
if (is_file($f['file']) && 0 <= self::$srcContext) {
217-
if (!empty($f['class']) && is_subclass_of($f['class'], 'Twig\Template') && method_exists($f['class'], 'getDebugInfo')) {
217+
if (!empty($f['class']) && is_subclass_of($f['class'], 'Twig\Template')) {
218218
$template = null;
219219
if (isset($f['object'])) {
220220
$template = $f['object'];

0 commit comments

Comments
 (0)
0