You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: