1 | <?php |
||
10 | class LanguageFileService extends ServiceAbstract implements ServiceInterface |
||
11 | { |
||
12 | use CanGenerateFile; |
||
13 | |||
14 | protected $key = 'languageFile'; |
||
15 | |||
16 | public function getConsoleOutput() { |
||
19 | |||
20 | /** |
||
21 | * Build the language file. |
||
22 | * |
||
23 | * @param string $name |
||
|
|||
24 | * |
||
25 | * @return string |
||
26 | */ |
||
27 | private function buildFileContent() |
||
44 | |||
45 | private function getTranslationFileContent(array $translation) |
||
55 | } |
||
56 |
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.