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

When properties appear in propstat with no value, don't call deserializers #711

Merged
merged 3 commits into from Sep 4, 2015

Conversation

evert
Copy link
Member

@evert evert commented Sep 2, 2015

Related to #707 #709

@DominikTo

$result = $this->parse($xml, [
'{DAV:}response' => 'Sabre\DAV\Xml\Element\Response',
'{DAV:}foo' => function($reader) {
throw new \LogicException('This should never happned');
Copy link
Member

Choose a reason for hiding this comment

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

Either "never have happened" or "never happen". ;-)

@DominikTo
Copy link
Member

👍

1 similar comment
@Hywan
Copy link
Member

Hywan commented Sep 2, 2015

👍

//
// The difference is that if there are any child-elements inside of
// {DAV:}prop, that have no value, normally any deserializers are
// called. But we don't want this, because a singlular element without
Copy link
Member

Choose a reason for hiding this comment

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

- singlular
+ singular

evert added a commit that referenced this pull request Sep 4, 2015
When properties appear in propstat with no value, don't call deserializers
@evert evert merged commit 05171aa into master Sep 4, 2015
@evert evert deleted the fix-empty-prop-issue branch October 20, 2015 21:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants