Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix TelephoneFormatter.php #200

Open
wants to merge 1 commit into
base: 2.0.0-dev
Choose a base branch
from

Conversation

peter9x
Copy link

@peter9x peter9x commented Jun 27, 2022

No description provided.

Copy link

@Hackbard Hackbard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to the RFCs this should not be changed

@@ -20,6 +20,6 @@ public function getVcfString(): string
{
return $this->telephone->getNode() .
';TYPE=' . $this->telephone->getType()->__toString() .
';VALUE=' . $this->telephone->getValue() . ':tel:' . $this->telephone->getTelephoneNumber();
';VALUE=' . $this->telephone->getValue() . ';TEL:' . $this->telephone->getTelephoneNumber();

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think it should stay tel in lowercase.
Becouse "tel" in this case is not the Node name from vCard https://datatracker.ietf.org/doc/html/rfc6350#section-6.4.1
It is the URI and the uri is defined here:
https://datatracker.ietf.org/doc/html/rfc3966

and there it is a lowercase tel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants