1 | <?php |
||
14 | final class AddProjectNamespaceCommand |
||
15 | { |
||
16 | /** |
||
17 | * The project team name. |
||
18 | * |
||
19 | * @var string |
||
20 | */ |
||
21 | public $name; |
||
22 | |||
23 | /** |
||
24 | * The project team slug. |
||
25 | * |
||
26 | * @var string |
||
27 | */ |
||
28 | public $path; |
||
29 | |||
30 | /** |
||
31 | * The project team order. |
||
32 | * |
||
33 | * @var string |
||
34 | */ |
||
35 | public $type; |
||
36 | |||
37 | /** |
||
38 | * The validation rules. |
||
39 | * |
||
40 | * @var string[] |
||
41 | */ |
||
42 | public $rules = [ |
||
43 | 'name' => 'required|string', |
||
44 | 'path' => 'required|string', |
||
45 | 'type' => 'string', |
||
46 | ]; |
||
47 | |||
48 | /** |
||
49 | * Create a add project team command instance. |
||
50 | * |
||
51 | * @param string $name |
||
52 | * @param int $order |
||
|
|||
53 | * |
||
54 | * @return void |
||
55 | */ |
||
56 | public function __construct($name, $path, $type) |
||
62 | } |
||
63 |
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.