Re: Revisiting Userland Operator Overloads
| From: | Peter Cowburn | Date: | Mon, 09 Aug 2021 18:39:26 +0000 |
| Subject: | Re: Revisiting Userland Operator Overloads | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-115673@lists.php.net to get a copy of this message | ||
On Mon, 9 Aug 2021 at 18:48, Jordan LeDoux <jordan.ledoux@gmail.com> wrote:
>
> You claim that this would be documented on php.net and this would be
> sufficient. Yet the DateTime class has had operator overloads for
> comparison operators since 5.2 and there is still *zero* mention on
> php.net
> (that I am aware of or can find) of this. Not even a mention that it
> exists, let alone what the override behavior is. *Not even in the god-awful
> comments on the manual.*
>
For future reference: https://www.php.net/manual/en/datetime.diff.php