Skip to content

Commit 1ee7a5a

Browse files
committed
Remove faulty validation
1 parent 49fb887 commit 1ee7a5a

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

lib/Model/Letter.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1108,12 +1108,6 @@ public function getTrackingEvents()
11081108
*/
11091109
public function setTrackingEvents($tracking_events)
11101110
{
1111-
if (!method_exists($this, 'getId') || (!empty($this->getId()) && strpos($this->getId(), "fakeId") === False)) {
1112-
1113-
if (!is_null($tracking_events) && (count($tracking_events) > 0)) {
1114-
throw new \InvalidArgumentException('invalid value for $tracking_events when calling Letter., number of items must be less than or equal to 0.');
1115-
}
1116-
}
11171111
$this->container['tracking_events'] = [];
11181112
if ($tracking_events) {
11191113
foreach ($tracking_events as $point) {

0 commit comments

Comments
 (0)