Scalar Type Declaration Syntax Weirdness

From: Date: Tue, 24 Nov 2015 15:10:54 +0000
Subject: Scalar Type Declaration Syntax Weirdness
Groups: php.internals 
Request: Send a blank email to internals+get-89375@lists.php.net to get a copy of this message
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.

« previous php.internals (#89375) next »