ice / framework

Source code of Ice framework
https://www.iceframework.org
BSD 3-Clause "New" or "Revised" License
341 stars 45 forks source link

Return self type hint #257

Closed mruz closed 4 years ago

mruz commented 4 years ago

This is not valid:

) -> <self>

PHP Fatal error: Could not check compatibility between ... because, ...\self is not available

We should type hint by Class name, Interface, object or remove it .