Re: Allowing NULL for some internal functions

From: Date: Mon, 07 Feb 2022 15:14:39 +0000
Subject: Re: Allowing NULL for some internal functions
References: 1 2 3 4 5 6  Groups: php.internals 
Request: Send a blank email to internals+get-116997@lists.php.net to get a copy of this message
On Mon, Feb 7, 2022, at 6:57 AM, Christian Schneider wrote: > Am 07.02.2022 um 13:07 schrieb G. P. B. <george.banyard@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

« previous php.internals (#116997) next »