Skip to content

Commit

Permalink
Merge pull request #27 from ne2d/patch-1
Browse files Browse the repository at this point in the history
Update ZasilkovnaBranch.php
  • Loading branch information
Salamek authored Feb 9, 2023
2 parents a76f512 + ea0c4f3 commit d4d33ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Entity/ZasilkovnaBranch.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ public function __construct(array $data)
$this->claimAssistant = $data['claimAssistant'] === '1';
$this->packetConsignment = $data['packetConsignment'] === '1';
$this->maxWeight = (int) $data['maxWeight'];
$this->region = $data['region'];
$this->district = Tool::convertToString($data['district']);
$this->region = $data['region'] ?? "";
$this->district = Tool::convertToString($data['district'] ?? null);
$this->labelRouting = Tool::convertToString($data['labelRouting']);
$this->labelName = Tool::convertToString($data['labelName']);
$this->openingHours = new BranchOpeningHours((array) ($data['openingHours'] ?? []));
Expand Down

0 comments on commit d4d33ac

Please sign in to comment.