| 1 | <?php  | 
            ||
| 10 | class LanguageFileService extends ServiceAbstract implements ServiceInterface  | 
            ||
| 11 | { | 
            ||
| 12 | use CanGenerateFile;  | 
            ||
| 13 | |||
| 14 | protected $key = 'languageFile';  | 
            ||
| 15 | |||
| 16 | public function getConsoleOutput()  | 
            ||
| 20 | |||
| 21 | /**  | 
            ||
| 22 | * Build the language file.  | 
            ||
| 23 | *  | 
            ||
| 24 | * @param string $name  | 
            ||
| 
                                                                                                    
                        
                         | 
                |||
| 25 | *  | 
            ||
| 26 | * @return string  | 
            ||
| 27 | */  | 
            ||
| 28 | private function buildFileContent()  | 
            ||
| 45 | |||
| 46 | private function getTranslationFileContent(array $translation)  | 
            ||
| 56 | }  | 
            ||
| 57 | 
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
$italyis not defined by the methodfinale(...).The most likely cause is that the parameter was removed, but the annotation was not.