RE: [PHP-DEV] Re: Scalar Type Declaration Syntax Weirdness

From: Date: Wed, 25 Nov 2015 23:28:56 +0000
Subject: RE: [PHP-DEV] Re: Scalar Type Declaration Syntax Weirdness
References: 1 2 3 4 5 6 7  Groups: php.internals 
Request: Send a blank email to internals+get-89436@lists.php.net to get a copy of this message
Hi Andrea, > -----Original Message----- > From: Andrea Faulds [mailto:ajf@ajf.me] > Sent: Wednesday, November 25, 2015 9:00 PM > To: internals@lists.php.net > Subject: Re: [PHP-DEV] Re: Scalar Type Declaration Syntax Weirdness > > Hi, > > Anatol Belski wrote: > > that's my point as well. There is a clear documentation about type hints, usage > of an undocumented way is out of scope of BC. Using \int means there were a > "class int{}" which is prohibited. Of course it is a bug after all, which will be > addressed. > > It may not be documented, but that doesn't put it outside the scope of BC. > People will unintentionally rely on bugs. > What is the reason to use \int if "class \int{}" is prohibited? A typo :) ? If the patch is fine within RC8 period, it is going to be applied in 7.0.1 which is soon enough to avoid creating bad habits. Applying a couple of hours old patch to the bug with such severity seems not appropriate, anyway. Regards Anatol

« previous php.internals (#89436) next »