giggsey/libphonenumber-for-php

might have issue with german numbers

victusfate opened this issue · 1 comments

test number
491 602229999
country string
DE

generates the following:

Format	Value
E164	+49491602229999
National	0491 602229999
International	+49 491 602229999
RFC3966	tel:+49-491-602229999

or in the code

        $numberProto = $phoneUtil->parse('491602229999', 'DE');
        $number = $phoneUtil->format($numberProto, PhoneNumberFormat::E164);
        // $number 's value is +49491602229999 but I expect +491602229999

nvm I forgot to add the '+'. when using it a second time