diff --git a/src/Passbook/PassValidator.php b/src/Passbook/PassValidator.php index da4e0f0..5e42af9 100644 --- a/src/Passbook/PassValidator.php +++ b/src/Passbook/PassValidator.php @@ -217,7 +217,7 @@ private function validateImageType(PassInterface $pass) } } } - + private function validateAssociatedStoreIdentifiers(PassInterface $pass) { //appLaunchURL @@ -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;