Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Zend\Feed\Writer\Entry::setDateCreated() does not accept string. #3760

Closed
rquadling opened this issue Feb 12, 2013 · 0 comments
Closed

Zend\Feed\Writer\Entry::setDateCreated() does not accept string. #3760

rquadling opened this issue Feb 12, 2013 · 0 comments

Comments

@rquadling
Copy link
Contributor

Hi.

The docblock for Zend\Feed\Writer\Entry::setDateCreated() says that a string is an acceptable type, but the code rejects this.

The same issue applies to Zend\Feed\Writer\Entry::setDateModified().

I found the issue as the codebase I'm working on is still using mysql (not mysqli or pdo - yet) and so, timestamps come over as strings. Casting the value to (int) is fine and is the current solution for me.

But the docblock and the code needs to agree.

Regards,

Richard.

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

No branches or pull requests

2 participants