Re: [RFC] Scalar Type Hints

From: Date: Thu, 01 Jan 2015 16:56:11 +0000
Subject: Re: [RFC] Scalar Type Hints
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-80060@lists.php.net to get a copy of this message
Hi Thomas, > On 1 Jan 2015, at 16:54, Thomas Bley <mails@thomasbley.de> wrote: > > thanks for the rfc! Currently we allow: > > function test(Array $o){} > test([]); > function test2(array $o){} > test2([]); > > So I propose to allow also uppercase type names: > ublic function __construct(String $name, Int $age, Float $cuteness, Bool $evil) { The RFC doesn’t mention it, but this is allowed by the patch, since type names are case-insensitive. Thanks. -- Andrea Faulds http://ajf.me/

« previous php.internals (#80060) next »