| 1 | <?php  | 
            ||
| 12 | class ModuleTest extends AbstractMigration  | 
            ||
| 
                                                                                                    
                        
                         | 
                |||
| 13 | { | 
            ||
| 14 | |||
| 15 | /**  | 
            ||
| 16 | * Change Method.  | 
            ||
| 17 | *  | 
            ||
| 18 | * Write your reversible migrations using this method.  | 
            ||
| 19 | *  | 
            ||
| 20 | * More information on writing migrations is available here:  | 
            ||
| 21 | * http://docs.phinx.org/en/latest/migrations.html#the-abstractmigration-class  | 
            ||
| 22 | *  | 
            ||
| 23 | * The following commands can be used in this method and Phinx will  | 
            ||
| 24 | * automatically reverse them when rolling back:  | 
            ||
| 25 | *  | 
            ||
| 26 | * createTable  | 
            ||
| 27 | * renameTable  | 
            ||
| 28 | * addColumn  | 
            ||
| 29 | * renameColumn  | 
            ||
| 30 | * addIndex  | 
            ||
| 31 | * addForeignKey  | 
            ||
| 32 | *  | 
            ||
| 33 | * Remember to call "create()" or "update()" and NOT "save()" when working  | 
            ||
| 34 | * with the Table class.  | 
            ||
| 35 | */  | 
            ||
| 36 | public function change()  | 
            ||
| 46 | }  | 
            ||
| 47 | 
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.