D7034: Add callable type to PHP

Matthijs Tijink noreply at phabricator.kde.org
Tue Aug 1 21:41:10 UTC 2017


mtijink added inline comments.

INLINE COMMENTS

> zhigalin wrote in duchain.cpp:751
> For `return $i();` the return type should be mixed, not callable

Both return statements return a callable: `$i` (note: without `()`) is a callable, and `function () {}` is a callable too. So I think this behaviour is correct, but correct me if I'm wrong.

REPOSITORY
  R52 KDevelop: PHP Support

REVISION DETAIL
  https://phabricator.kde.org/D7034

To: mtijink, #kdevelop, zhigalin
Cc: zhigalin, kdevelop-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20170801/2a129a72/attachment.html>


More information about the KDevelop-devel mailing list