Skip to content
Permalink
Browse files

Update FQCNMessageFactory.php

  • Loading branch information
prolic committed Sep 15, 2015
1 parent f9e921b commit 5c968da5eb97d762b638a3f1ee01b7b3af1f5e7a
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/Messaging/FQCNMessageFactory.php
@@ -32,10 +32,10 @@ public function createMessageFromArray($messageName, array $messageData)
throw new \UnexpectedValueException('Given message name is not a valid class: ' . (string)$messageName);
}

if (!is_subclass_of($messageClass, DomainMessage::class)) {
if (!is_subclass_of($messageName, DomainMessage::class)) {
throw new \UnexpectedValueException(sprintf(
'Message class %s is not a sub class of %s',
$messageClass,
$messageName,
DomainMessage::class
));
}

0 comments on commit 5c968da

Please sign in to comment.
You can’t perform that action at this time.