On Mon, Feb 7, 2022, at 6:57 AM, Christian Schneider wrote: > Am 07.02.2022 um 13:07 schrieb G. P. B. <george.bany...@gmail.com>:
> So you are basically saying that we should discuss making it > strlen(?string $string): int > which would be cleaner, I agree. I would agree here as well. The goal is consistency, so keep it consistent. If there's an argument to be made to rewiden a type to include null, make that case and have that debate on a function by function basis. No mode-based switcheroos. --Larry Garfield -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php