Open
Description
Public IShare interface (OCP\Share\IShare
) has method getExpirationDate
which should return a \DateTime
object. However, the share2.0 implementation might not return this kind of object.
- It might return null if the expiration date is not set.
- It might return any other object (not just
\DateTime
) if such object is set via thesetExpirationDate
method (no type check used in the method).
This is currently messing up with phpstan configuration, because checking if the expiration date is null is almost mandatory.