1 | <?php |
||
5 | class CreateCertificateCommand extends CertificateCommand |
||
6 | { |
||
7 | /** |
||
8 | * Set certificate domain. |
||
9 | * |
||
10 | * @param string $domain |
||
11 | * |
||
12 | * @return static |
||
13 | */ |
||
14 | public function identifiedAs(string $domain) |
||
18 | |||
19 | /** |
||
20 | * Set certificate organization name. |
||
21 | * |
||
22 | * @param string $organization |
||
23 | */ |
||
24 | public function ownedBy(string $organization) |
||
28 | |||
29 | /** |
||
30 | * Set organization location. |
||
31 | * |
||
32 | * @param string $country |
||
33 | * @param string $state |
||
34 | * @param string $city |
||
35 | * |
||
36 | * @return static |
||
37 | */ |
||
38 | public function locatedAt(string $country, string $state, string $city) |
||
45 | |||
46 | /** |
||
47 | * Set certificate department. |
||
48 | * |
||
49 | * @param string $department* |
||
|
|||
50 | * |
||
51 | * @return static |
||
52 | */ |
||
53 | public function assignedTo(string $department) |
||
57 | } |
||
58 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function. It has, however, found a similar but not annotated parameter which might be a good fit.
Consider the following example. The parameter
$ireland
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was changed, but the annotation was not.