cakephp/cakephp — pull request #3770 by dereuromark (2014-06-22 06:52:16+00:00)
Title: Typehint Response for beforeRedirect

It is already documented as such:

- `beforeRedirect(Event $event $url, Response $response)`

But it seems some tests don't pass now.
Thats interesting as the method expects a valid object to work with:

$response->body(...);
...