Skip to content

Commit 1468963

Browse files
committed
[VarDumper] Fixed notice when Exchange is mocked
1 parent e964f4c commit 1468963

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Caster/AmqpCaster.php

Lines 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)