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

Commit

Permalink
fix php 7.2. ErrorException on processWarnings
Browse files Browse the repository at this point in the history
Fix php 7.2 ErrorException: count(): Parameter must be an array or an object that implements Countable
  • Loading branch information
jekamell authored Jul 5, 2019
1 parent 6cc0e34 commit 780678b
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 780678b

Please sign in to comment.