[Pkg-owncloud-commits] [php-sabre-vobject] 209/341: TEL is not a FlatText, it is a URI property.
David Prévot
taffit at moszumanska.debian.org
Tue Aug 11 13:35:48 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository php-sabre-vobject.
commit 68ccfd3a833b05625a51a700b090d1b77374c971
Author: Ivan Enderlin <ivan.enderlin at hoa-project.net>
Date: Mon Jan 26 15:37:38 2015 +0100
TEL is not a FlatText, it is a URI property.
---
lib/Component/VCard.php | 2 +-
tests/VObject/JCardTest.php | 2 +-
tests/VObject/Parser/JsonTest.php | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/lib/Component/VCard.php b/lib/Component/VCard.php
index 3875c71..b5a10a5 100644
--- a/lib/Component/VCard.php
+++ b/lib/Component/VCard.php
@@ -72,7 +72,7 @@ class VCard extends VObject\Document {
'BDAY' => 'Sabre\\VObject\\Property\\VCard\\DateAndOrTime',
'ADR' => 'Sabre\\VObject\\Property\\Text',
'LABEL' => 'Sabre\\VObject\\Property\\FlatText', // Removed in vCard 4.0
- 'TEL' => 'Sabre\\VObject\\Property\\FlatText',
+ 'TEL' => 'Sabre\\VObject\\Property\\Uri',
'EMAIL' => 'Sabre\\VObject\\Property\\FlatText',
'MAILER' => 'Sabre\\VObject\\Property\\FlatText', // Removed in vCard 4.0
'GEO' => 'Sabre\\VObject\\Property\\FlatText',
diff --git a/tests/VObject/JCardTest.php b/tests/VObject/JCardTest.php
index 0a2e977..b5d93ec 100644
--- a/tests/VObject/JCardTest.php
+++ b/tests/VObject/JCardTest.php
@@ -92,7 +92,7 @@ class JCardTest extends \PHPUnit_Framework_TestCase {
(object)array(
"group" => "item1",
),
- "text",
+ "uri",
"+1 555 123456",
),
array(
diff --git a/tests/VObject/Parser/JsonTest.php b/tests/VObject/Parser/JsonTest.php
index a4d27b3..94ef21b 100644
--- a/tests/VObject/Parser/JsonTest.php
+++ b/tests/VObject/Parser/JsonTest.php
@@ -59,7 +59,7 @@ class JsonTest extends \PHPUnit_Framework_TestCase {
(object)array(
"group" => "item1",
),
- "text",
+ "uri",
"+1 555 123456",
),
array(
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/php-sabre-vobject.git
More information about the Pkg-owncloud-commits
mailing list