Skip to content

Commit e9df97d

Browse files
authored
Bug fixed not array multi phoneNumber and email
1 parent f935c74 commit e9df97d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

factories/ContactFactory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,14 @@ public static function getAll()
5151
$attributes = $value->attributes();
5252
$emailadress = (string) $attributes['address'];
5353
$emailtype = substr(strstr($attributes['rel'], '#'), 1);
54-
$contactDetails[$key] = ['type' => $emailtype, 'email' => $emailadress];
54+
$contactDetails[$key][] = ['type' => $emailtype, 'email' => $emailadress];
5555
break;
5656
case 'phoneNumber':
5757
$attributes = $value->attributes();
5858
$uri = (string) $attributes['uri'];
5959
$type = substr(strstr($attributes['rel'], '#'), 1);
6060
$e164 = substr(strstr($uri, ':'), 1);
61-
$contactDetails[$key] = ['type' => $type, 'number' => $e164];
61+
$contactDetails[$key][] = ['type' => $type, 'number' => $e164];
6262
break;
6363
default:
6464
$contactDetails[$key] = (string) $value;

0 commit comments

Comments
 (0)