On Sun, Jun 24, 2018 at 8:11 AM Rudi Theunissen <rtheunis...@php.net> wrote: > > Here is a WIP implementation of `__compareTo`, with some decent tests. > > https://github.com/php/php-src/compare/master...rtheunissen:rt-compare-to-magic-method?diff=unified
Help me understand the nullable return. If you are defining this operator then by definition you don't want the standard behavior, so why is returning null helpful? Seems like implementors ought to throw. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php