Skip to content

Commit

Permalink
Payment notice fix (#496)
Browse files Browse the repository at this point in the history
* optional attribute type

* remove notice

* styleCi
  • Loading branch information
Pfabeck authored Jun 21, 2019
1 parent 055bbf4 commit d450897
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -533,6 +533,10 @@ private function getPropertiesAsAttribute(array $properties): array
* @var Attribute $attribute
*/
foreach ($properties as $property) {
if (!isset($property['relationValues'][0])) {
continue;
}

$attribute = new Attribute();
$attribute->setKey('propertyId' . $property['propertyId']);
$attribute->setValue($property['relationValues'][0]['value']);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,6 @@ public function parse(array $element): array
);

if ($isMappedPaymentIdentity) {
$this->logger->notice('paymentidentity' . $paymentIdentifier->getObjectIdentifier() . ' ist not mapped');

return [];
}

Expand Down

0 comments on commit d450897

Please sign in to comment.