PHP7 and types

From: Date: Sat, 11 Jul 2015 16:04:32 +0000
Subject: PHP7 and types
Groups: php.internals 
Request: Send a blank email to internals+get-87108@lists.php.net to get a copy of this message
With all the new typing and strict mode in PHP7, I'm wondering if there is any planned support for typing of properties in a future version. IE something like: class Foo {} class Bar { public Foo $foo; public function __construct(Foo $foo) { $this->foo = $foo; } } This seems really useful to me. If its not something that was considered before I can try to write up an RFC for this, however I'm not sure if this was already considered and denied. Any feedback would be greatly appreciated. -Ryan

« previous php.internals (#87108) next »