| 1 | <?php namespace Arcanesoft\Blog\Http\Routes\Front; |
||
| 11 | class PostsRoutes extends RouteRegistrar |
||
| 12 | { |
||
| 13 | /* ------------------------------------------------------------------------------------------------ |
||
| 14 | | Main Functions |
||
| 15 | | ------------------------------------------------------------------------------------------------ |
||
| 16 | */ |
||
| 17 | /** |
||
| 18 | * Map routes. |
||
| 19 | * |
||
| 20 | * @param \Illuminate\Contracts\Routing\Registrar $router |
||
|
|
|||
| 21 | */ |
||
| 22 | public function map() |
||
| 35 | } |
||
| 36 |
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
$italyis not defined by the methodfinale(...).The most likely cause is that the parameter was removed, but the annotation was not.