Skip to content

Commit

Permalink
Попытка починить работу на PHP 7.4 (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
dva-re authored Apr 9, 2020
1 parent f398a93 commit 7b2b093
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Tracking/PacketAccessClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,10 @@ private function callSoapMethod(string $method, \SoapVar $arguments)

private function assembleTicketRequestArguments(iterable $tracks, string $language): \SoapVar
{
$items = new \ArrayObject();

$items = [];
foreach ($tracks as $track) {
$items->append(new \SoapVar("<Item Barcode=\"{$track}\" />", \XSD_ANYXML));
$items[] = new \SoapVar("<Item Barcode=\"{$track}\" />", \XSD_ANYXML);
}

return new \SoapVar([
Expand Down

0 comments on commit 7b2b093

Please sign in to comment.