Completed
Pull Request — master (#125)
by
unknown
03:44
created
library/Respect/Rest/Request.php 1 patch
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
      * @see    Respect\Rest\Request::forwardErrors
76 76
      * @see    http://php.net/set_error_handler
77 77
      *
78
-     * @return mixed The previous error handler
78
+     * @return null|callable The previous error handler
79 79
      */
80 80
     protected function prepareForErrorForwards()
81 81
     {
@@ -166,10 +166,10 @@  discard block
 block discarded – undo
166 166
      * Restores the previous error handler if present then check error routes
167 167
      * for logged errors, forwarding them or returning null silently
168 168
      *
169
-     * @param mixed $errorHandler Some error handler (internal or external to
169
+     * @param null|callable $errorHandler Some error handler (internal or external to
170 170
      *                            Respect)
171 171
      *
172
-     * @return mixed A route forwarding or a silent null
172
+     * @return string|null A route forwarding or a silent null
173 173
      */
174 174
     protected function forwardErrors($errorHandler)
175 175
     {
@@ -192,9 +192,9 @@  discard block
 block discarded – undo
192 192
      * Does a catch-like operation on an exception based on previously
193 193
      * declared instances from Router::exceptionRoute
194 194
      *
195
-     * @param Exception $e Any exception
195
+     * @param \Exception $e Any exception
196 196
      *
197
-     * @return mixed A route forwarding or a silent null
197
+     * @return string|null A route forwarding or a silent null
198 198
      */
199 199
     protected function catchExceptions($e)
200 200
     {
@@ -328,7 +328,7 @@  discard block
 block discarded – undo
328 328
      *
329 329
      * @param AbstractRoute $route Any route
330 330
      *
331
-     * @return Response from the forwarded route
331
+     * @return string from the forwarded route
332 332
      */
333 333
     public function forward(AbstractRoute $route)
334 334
     {
Please login to merge, or discard this patch.