1 | <?php |
||
10 | class LanguageFileService extends ServiceAbstract implements ServiceInterface |
||
11 | { |
||
12 | use CanGenerateFile; |
||
13 | |||
14 | protected $key = 'languageFile'; |
||
15 | |||
16 | /** |
||
17 | * Build the language file. |
||
18 | * |
||
19 | * @param string $name |
||
|
|||
20 | * |
||
21 | * @return string |
||
22 | */ |
||
23 | private function buildFileContent() |
||
36 | |||
37 | private function getTranslationFileContent(array $translation) |
||
47 | } |
||
48 |
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.