We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c127085 commit 6754debCopy full SHA for 6754deb
Model/Tracking/Response/ParcelResponse.php
@@ -70,9 +70,13 @@ public function getRemovalPoint(): ?RemovalPoint
70
return $this->removalPoint;
71
}
72
73
- public function setRemovalPoint(array $removalPoint): ParcelResponse
+ public function setRemovalPoint(?array $removalPoint): ParcelResponse
74
{
75
- $this->removalPoint = (new RemovalPoint())->populate($removalPoint);
+ if (null !== $removalPoint) {
76
+ $rp = (new RemovalPoint())->populate($removalPoint);
77
+ }
78
+
79
+ $this->removalPoint = $rp ?? null;
80
81
return $this;
82
0 commit comments