Completed
Pull Request — master (#143)
by
unknown
04:07
created
library/Respect/Rest/Request.php 1 patch
Doc Comments   +9 added lines, -9 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
     {
@@ -167,10 +167,10 @@  discard block
 block discarded – undo
167 167
      * Restores the previous error handler if present then check error routes
168 168
      * for logged errors, forwarding them or returning null silently
169 169
      *
170
-     * @param mixed $errorHandler Some error handler (internal or external to
170
+     * @param null|callable $errorHandler Some error handler (internal or external to
171 171
      *                            Respect)
172 172
      *
173
-     * @return mixed A route forwarding or a silent null
173
+     * @return string|null A route forwarding or a silent null
174 174
      */
175 175
     protected function forwardErrors($errorHandler)
176 176
     {
@@ -193,9 +193,9 @@  discard block
 block discarded – undo
193 193
      * Does a catch-like operation on an exception based on previously
194 194
      * declared instances from Router::exceptionRoute
195 195
      *
196
-     * @param Exception $e Any exception
196
+     * @param \Exception $e Any exception
197 197
      *
198
-     * @return mixed A route forwarding or a silent null
198
+     * @return string|null A route forwarding or a silent null
199 199
      */
200 200
     protected function catchExceptions($e)
201 201
     {
@@ -217,9 +217,9 @@  discard block
 block discarded – undo
217 217
      * Does a catch-like operation on an error based on previously
218 218
      * declared instances from Router::exceptionRoute
219 219
      *
220
-     * @param Error $e Any exception
220
+     * @param \Error $e Any exception
221 221
      *
222
-     * @return mixed A route forwarding or a silent null
222
+     * @return string|null A route forwarding or a silent null
223 223
      */
224 224
     protected function catchErrors($e)
225 225
     {
@@ -299,7 +299,7 @@  discard block
 block discarded – undo
299 299
      * @param Routinable $routine Some routine instance
300 300
      * @param array      $params  Params from the routine
301 301
      *
302
-     * @return mixed Whatever the routine returns
302
+     * @return AbstractRoute Whatever the routine returns
303 303
      */
304 304
     public function routineCall($type, $method, Routinable $routine, &$params)
305 305
     {
@@ -361,7 +361,7 @@  discard block
 block discarded – undo
361 361
      *
362 362
      * @param AbstractRoute $route Any route
363 363
      *
364
-     * @return Response from the forwarded route
364
+     * @return string from the forwarded route
365 365
      */
366 366
     public function forward(AbstractRoute $route)
367 367
     {
Please login to merge, or discard this patch.