On 4 November 2014 08:51, Stas Malyshev <smalys...@sugarcrm.com> wrote: > I don't see why > "public Foo function bar()" would be so much worse than "public function > bar() : Foo"
Because when you grep for "function bar", in future you'd have to know the return type too. I like to think of it as: function bar(): Type $hiddenTmpVar -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php