Method Sabre\VObject\Parameter::__toString() must return a string value #70

viktors opened this Issue Nov 29, 2013 · 0 comments

1 participant


Possible bug in lib/Sabre/VObject/Parameter.php:

__toString is not allowed to return null, according to PHP documentation, but it calls getValue method which can return null, according to the method documentation.

How to reproduce:

$vcard = new VObject\Component\VCard();
$vcard->add('TEL', '', array('pref' => null));
echo $vcard->TEL['PREF']; // this calls __toString()
@evert evert closed this in 0093f5f Jan 22, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment