Re: [RFC-Discuss] Scalar Type Declarations v0.5

From: Date: Fri, 20 Feb 2015 11:07:14 +0000
Subject: Re: [RFC-Discuss] Scalar Type Declarations v0.5
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-83287@lists.php.net to get a copy of this message
Hi Anthony, I have been interested in this proposal for a while now. I'm not on internals, but I have a question about your proposal. > 1. declare(strict_types=1) (if used) is required to be the first > instruction in the file only. No other usages allowed. How would this work with namespaces? declare(strict_types=1) namespace Foo; namespace Bar; declare(strict_types=1) strict namespace Baz; Really good proposal though. Really hope it passes vote and we finally get scalar type hints in PHP. Cheers, Chris

« previous php.internals (#83287) next »