Skip to content

Commit 9eac874

Browse files
author
Vasiliev.A
committed
fix MessageValidator getRealType function when "bool" param type is not valid for "boolean"
1 parent a4b07e9 commit 9eac874

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/internal/Magento/Framework/MessageQueue/MessageValidator.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ protected function validateClassType($message, $messageType, $topic)
173173
private function getRealType($message)
174174
{
175175
$type = is_object($message) ? get_class($message) : gettype($message);
176+
$type = $type == 'boolean' ? 'bool' : $type;
176177
return $type == "integer" ? "int" : $type;
177178
}
178179

0 commit comments

Comments
 (0)