1 | <?php |
||
7 | class GitApplication extends Application implements ApplicationContract |
||
8 | { |
||
9 | /** |
||
10 | * Application type. |
||
11 | * |
||
12 | * @return string |
||
13 | */ |
||
14 | public function type() |
||
18 | |||
19 | /** |
||
20 | * Indicates that application will be installed from GitHub repository. |
||
21 | * |
||
22 | * @param string $repository |
||
23 | * |
||
24 | * @return static |
||
25 | */ |
||
26 | public function fromGithub(string $repository) |
||
30 | |||
31 | /** |
||
32 | * Indicates that application will be installed from Bitbucket repository. |
||
33 | * |
||
34 | * @param string $repository |
||
35 | * |
||
36 | * @return static |
||
37 | */ |
||
38 | public function fromBitbucket(string $repository) |
||
42 | |||
43 | /** |
||
44 | * Indicates that application will be installed from Gitlab repository. |
||
45 | * |
||
46 | * @param string $repository |
||
47 | * |
||
48 | * @return static |
||
49 | */ |
||
50 | public function fromGitlab(string $repository) |
||
54 | |||
55 | /** |
||
56 | * Indicates that application will be installed from custom git repository. |
||
57 | * |
||
58 | * @param string $repository |
||
|
|||
59 | * |
||
60 | * @return static |
||
61 | */ |
||
62 | public function fromGit(string $url) |
||
66 | |||
67 | /** |
||
68 | * Set git provider and repository name. |
||
69 | * |
||
70 | * @param string $provider |
||
71 | * @param string $repository |
||
72 | * |
||
73 | * @return static |
||
74 | */ |
||
75 | protected function setRepositorySource(string $provider, string $repository) |
||
84 | } |
||
85 |
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.