Skip to content
This repository has been archived by the owner on Jan 16, 2023. It is now read-only.

Commit

Permalink
Merge pull request ondrejnov#49 from jekamell/patch-1
Browse files Browse the repository at this point in the history
fix php 7.2. ErrorException on processWarnings
  • Loading branch information
ondrejnov authored Jul 5, 2019
2 parents 6cc0e34 + 780678b commit 2626896
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Dispatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ private function processError($error) {
*/
private 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) {
Expand Down

0 comments on commit 2626896

Please sign in to comment.