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 b3ed23e

Browse filesBrowse files
committed
[VarDumper] Fixed notice when Exchange is mocked
1 parent 1a4d7d7 commit b3ed23e
Copy full SHA for b3ed23e

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/VarDumper/Caster/AmqpCaster.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public static function castExchange(\AMQPExchange $c, array $a, Stub $stub, $isN
105105
$a += array(
106106
$prefix.'name' => $c->getName(),
107107
$prefix.'flags' => self::extractFlags($c->getFlags()),
108-
$prefix.'type' => new ConstStub(self::$exchangeTypes[$c->getType()], $c->getType()),
108+
$prefix.'type' => isset(self::$exchangeTypes[$c->getType()]) ? new ConstStub(self::$exchangeTypes[$c->getType()], $c->getType()) : $c->getType(),
109109
$prefix.'arguments' => $c->getArguments(),
110110
$prefix.'channel' => $c->getChannel(),
111111
$prefix.'connection' => $c->getConnection(),

0 commit comments

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