[php-src] PR #23695: date: Add comparison handler to Time\Duration
| From: | TimWolla | Date: | Tue, 15 Sep 2026 19:33:16 +0000 |
| Subject: | [php-src] PR #23695: date: Add comparison handler to Time\Duration | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-38491@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/23695
Author: TimWolla
As stated in the RFC:
> The Time\Duration class will also implement internal “comparison handlers”,
> which means that direct comparisons with operators such as < will work.
> Other operators (such as + for addition) will not be overloaded.