Skip to content

Commit

Permalink
grouping identifier validation fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
eymengunay committed Feb 23, 2018
1 parent 6bbcb51 commit a5b05f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Passbook/PassValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ private function validateImageType(PassInterface $pass)
}
}
}

private function validateAssociatedStoreIdentifiers(PassInterface $pass)
{
//appLaunchURL
Expand All @@ -240,7 +240,7 @@ private function validateAssociatedStoreIdentifiers(PassInterface $pass)

private function validateGroupingIdentity(PassInterface $pass)
{
if (null !== $pass->getType() && !in_array($pass->getType(), ['boardingPass', 'eventTicket'])) {
if (null !== $pass->getGroupingIdentifier() && !in_array($pass->getType(), ['boardingPass', 'eventTicket'])) {
$this->addError(self::GROUPING_IDENTITY_INVALID);

return;
Expand Down

0 comments on commit a5b05f3

Please sign in to comment.