Request for RFC karma: Typed Operator Methods

From: Date: Mon, 23 Nov 2026 15:39:42 +0000
Subject: Request for RFC karma: Typed Operator Methods
Groups: php.internals 
Request: Send a blank email to internals+get-133203@lists.php.net to get a copy of this message
Hi internals, I would like to request RFC karma on the PHP wiki to publish a draft RFC titled "Typed Operator Methods". Wiki username: ahmednour Summary: The proposal introduces typed arithmetic operator overloading (+, -, *, /, %, **) for readonly value classes via an opt-in Operable interface and magic methods (__add, __sub, __mul, __div, __mod, __pow). It is a narrower successor to the 2022 operator overloading RFC with mandatory strict parameter and return types. A working implementation is already open as a draft PR here: https://www.google.com/url?q=https://github.com/php/php-src/pull/25670&source=gmail&ust=1795534782154000&sa=E Thank you! Best regards, Ahmed Nour

« previous php.internals (#133203) next »