diff --git a/src/Dispatcher.php b/src/Dispatcher.php index 8ae0e09..4aaec73 100644 --- a/src/Dispatcher.php +++ b/src/Dispatcher.php @@ -341,7 +341,7 @@ public function processError($error) { */ public function processWarnings($warnings) { $result = array(); - if(\count($warnings) === 1) { + if($warnings instanceof \stdClass) { $result[\intval($warnings->kod_varov)] = $this->getWarningMsg($warnings->kod_varov); } else { foreach ($warnings as $warning) {