Skip to content

Commit 583044d

Browse files
committed
Updated: getValueByKey()
1 parent df43de5 commit 583044d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/integready/firstdataapi/FirstData.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -982,6 +982,10 @@ protected function getValueByKey($data, $key)
982982
}
983983
}
984984

985+
if ($data instanceof \stdClass) {
986+
return $data->{$key} ?? null;
987+
}
988+
985989
// Nothing matched
986990
return null;
987991
}

0 commit comments

Comments
 (0)