I would like to take this opportunity to query on a consensus:

Would you prefer to allow methods with type hinted return values to return null 
at will, or add a marker noting that it *may* return null?

Example: Return null at will

public ArrayIterator getIterator()
{
   // something happened, will return null
   return null;
}

Example: Return only if identified as such

public ArrayIterator? getIterator()
{
    return null;
}





--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to