| 1 | <?php  | 
            ||
| 15 | class FEUsersAddSiteIdTypo3 extends \Aimeos\MW\Setup\Task\Base  | 
            ||
| 16 | { | 
            ||
| 17 | private $migrate = array(  | 
            ||
| 18 | 'mysql' => array (  | 
            ||
| 19 | 'ALTER TABLE "fe_users" ADD "siteid" INTEGER NULL'  | 
            ||
| 20 | ),  | 
            ||
| 21 | );  | 
            ||
| 22 | |||
| 23 | |||
| 24 | /**  | 
            ||
| 25 | * Returns the list of task names which this task depends on.  | 
            ||
| 26 | *  | 
            ||
| 27 | * @return array List of task names  | 
            ||
| 28 | */  | 
            ||
| 29 | public function getPreDependencies()  | 
            ||
| 33 | |||
| 34 | |||
| 35 | /**  | 
            ||
| 36 | * Returns the list of task names which depends on this task.  | 
            ||
| 37 | *  | 
            ||
| 38 | * @return string[] List of task names  | 
            ||
| 39 | */  | 
            ||
| 40 | public function getPostDependencies()  | 
            ||
| 44 | |||
| 45 | |||
| 46 | /**  | 
            ||
| 47 | * Add column siteid to fe_users table.  | 
            ||
| 48 | *  | 
            ||
| 49 | * @param array $stmts Associative array of tables names and lists of SQL statements to execute.  | 
            ||
| 
                                                                                                    
                        
                         | 
                |||
| 50 | */  | 
            ||
| 51 | public function migrate()  | 
            ||
| 75 | }  | 
            ||
| 76 | 
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.