Re: Type hinting misunderstood

From: Date: Sun, 06 Jan 2008 17:03:29 +0000
Subject: Re: Type hinting misunderstood
References: 1 2 3 4 5 6 7 8 9 10 11 12  Groups: php.internals 
Request: Send a blank email to internals+get-34532@lists.php.net to get a copy of this message
On Sun, 2008-01-06 at 10:55 -0500, Sam Barrow wrote: > function requireFile(string $file, bool $getOutput = false, array $args > // ... > This function will not be called using input data. > So is there some way you are ensuring that users of your code NEVER pass a value that trickled down from a checkbox on a form for $getOutput? (Just an example) Saying that something will not be called using some form of input data (either directly or through several chained calls) is kind of silly imo. I am sure there are better arguments/solutions than just saying "don't use it with 'input'".

« previous php.internals (#34532) next »