Completed
Push — master ( f172d4...76e139 )
by devosc
02:14
created

src/Web/Error.php (1 issue)

Severity

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
/**
3
 *
4
 */
5
6
namespace Mvc5\Web;
7
8
use Mvc5\Http\Request;
9
use Mvc5\Http\Response;
10
use Mvc5\Request\Error\Error as _Error;
11
12
class Error
13
{
14
    /**
15
     *
16
     */
17
    use _Error;
18
19
    /**
20
     * @param Request $request
21
     * @param Response $response
22
     * @param callable $next
23
     * @return Response
24
     */
25 1
    function __invoke(Request $request, Response $response, callable $next)
0 ignored issues
show
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
26
    {
27 1
        return $next($this->request($request), $response);
28
    }
29
}
30