Refactor generator checks to occur in function declaration end, not in zend_do_yield
Merge pull request #6 from ircmaxell/returntypehinting

Refactor generator checks to occur in function declaration end