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

Commit

Permalink
Types/Result: list of services will be an array at all times
Browse files Browse the repository at this point in the history
  • Loading branch information
sanmai committed Oct 1, 2018
1 parent b0f27ea commit c86efea
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Responses/Types/Result.php
Expand Up @@ -102,7 +102,7 @@ final class Result
*
* @var AdditionalService[]|null
*/
private $services;
private $services = [];

/**
* @return null|float
Expand Down Expand Up @@ -173,6 +173,11 @@ public function getDeliveryDateMax()
*/
public function getAdditionalServices()
{
if ($this->services === []) {
/** @deprecated */
return null;
}

return $this->services;
}
}

0 comments on commit c86efea

Please sign in to comment.