Re: Introducing "Array Of" RFC

From: Date: Wed, 15 Jan 2014 19:27:03 +0000
Subject: Re: Introducing "Array Of" RFC
References: 1 2  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message


On 15/01/14 19:24, Robert Stoll wrote:
But about some details. I am not sure if I got the implementation right (haven't done any code contributions so far, so I am not really familiar with the source code) but it seems that a check for NULL is implemented for the actual parameter which is perfectly fine (done for other type hints as well) but it also checks if all members of an array are not NULL and the check returns a failure if NULL is detected. I think that's wrong, NULL is a perfect valid entry in an array.
I agree with this. NULL should be considered a valid substitute for a value of any type. -- Andrea Faulds http://ajf.me/

Thread (46 messages)

« previous php.internals (#71146) next »