1 | <?php |
||
25 | class AuthenticationMiddleware implements HTTPMiddleware |
||
26 | { |
||
27 | /** |
||
28 | * @var Application |
||
29 | */ |
||
30 | protected $application = null; |
||
31 | |||
32 | /** |
||
33 | * @var Authenticator |
||
34 | */ |
||
35 | protected $authenticator; |
||
36 | |||
37 | /** |
||
38 | * Build error control chain for an application |
||
39 | * |
||
40 | * @param Application $application The SilverStripe Application. |
||
|
|||
41 | */ |
||
42 | public function __construct() |
||
46 | |||
47 | /** |
||
48 | * Process the middleware. |
||
49 | * |
||
50 | * @param HTTPRequest $request The incoming request. |
||
51 | * @param callable $next The next middleware. |
||
52 | * |
||
53 | * @return HTTPResponse |
||
54 | */ |
||
55 | public function process(HTTPRequest $request, callable $next) |
||
73 | } |
||
74 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.