Skip to content
This repository has been archived by the owner on Jun 19, 2024. It is now read-only.

Commit

Permalink
Merge pull request #65 from Tayfun74/master
Browse files Browse the repository at this point in the history
Remove check on device token length
  • Loading branch information
mac-cain13 authored May 27, 2019
2 parents 417b4c5 + 0d39e12 commit 7232b69
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
5 changes: 0 additions & 5 deletions src/Wrep/Notificato/Apns/Feedback/Tuple.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,6 @@ public function __construct($invalidatedAtTimestamp, $deviceToken, Certificate $
throw new \InvalidArgumentException('Invalid device token given, no hexadecimal: ' . $deviceToken);
}

// Check if the length of the devicetoken is correct
if (64 != strlen($deviceToken)) {
throw new \InvalidArgumentException('Invalid device token given, incorrect length: ' . $deviceToken . ' (' . strlen($deviceToken) . ')');
}

// Save the data
$this->invalidatedAt = new \DateTime('@' . (int)$invalidatedAtTimestamp);
$this->deviceToken = $deviceToken;
Expand Down
5 changes: 0 additions & 5 deletions src/Wrep/Notificato/Apns/Message.php
Original file line number Diff line number Diff line change
Expand Up @@ -294,11 +294,6 @@ private function setDeviceToken($deviceToken)
throw new \InvalidArgumentException('Invalid device token given, no hexadecimal: ' . $deviceToken);
}

// Check if the length of the devicetoken is correct
if (64 != strlen($deviceToken)) {
throw new \InvalidArgumentException('Invalid device token given, incorrect length: ' . $deviceToken . ' (' . strlen($deviceToken) . ')');
}

// Set the devicetoken
$this->deviceToken = $deviceToken;
}
Expand Down

0 comments on commit 7232b69

Please sign in to comment.