Re: Scalar Type Declaration Syntax Weirdness

From: Date: Tue, 24 Nov 2015 17:03:39 +0000
Subject: Re: Scalar Type Declaration Syntax Weirdness
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-89387@lists.php.net to get a copy of this message
Sebastian, On Tue, Nov 24, 2015 at 10:10 AM, Sebastian Bergmann <sebastian@php.net> wrote: > The following is currently valid PHP 7 code > > <?php > function a(\int $i) {} > > Is it intentional that the \ in front of the "int" is allowed? IMHO, this > confusing notation must not be allowed. Yeah, that is a problem. We should fix that prior to gold. I'll take a peak at it when I get some time, but if someone else has a few minutes and wants to tackle it go for it. Anthony

« previous php.internals (#89387) next »