Req #75195 [Opn]: DateTimeInterface does not include add method

From: Date: Tue, 12 Sep 2017 17:08:04 +0000
Subject: Req #75195 [Opn]: DateTimeInterface does not include add method
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-211100@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=75195&edit=1

 ID:                 75195
 User updated by:    richard dot carree dot com at gmail dot com
 Reported by:        richard dot carree dot com at gmail dot com
 Summary:            DateTimeInterface does not include add method
 Status:             Open
 Type:               Feature/Change Request
 Package:            Date/time related
 PHP Version:        Irrelevant
 Block user comment: N
 Private report:     N

 New Comment:

Sorry, I meant:

Both of DateTime and DateTimeImmutable expose add method. As "DateTimeInterface is
meant so that both DateTime and DateTimeImmutable can be type hinted for", why it does not
include add method?


Previous Comments:
------------------------------------------------------------------------
[2017-09-12 17:06:10] richard dot carree dot com at gmail dot com

Description:
------------
Both of DateTime and DateTimeInterface expose add method. As "DateTimeInterface is
meant so that both DateTime and DateTimeImmutable can be type hinted for", why it does not
include add method?



------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=75195&edit=1


Thread (5 messages)

« previous php.bugs (#211100) next »