src/Phinx/Migration/AbstractMigration.php
public function preFlightCheck($direction = null)
    {
        if (method_exists($this, MigrationInterface::CHANGE)) {
            if (method_exists($this, MigrationInterface::UP) ||
                method_exists($this, MigrationInterface::DOWN) ) {
                $this->output->writeln(sprintf(
                    '<comment>warning</comment> Migration contains both change() and/or up()/down() methods.  <options=bold>Ignoring up() and down()</>.'
                ));
            }
        }
    }
public function preFlightCheck($direction = null)
    {
        if (method_exists($this, MigrationInterface::CHANGE)) {
            if (method_exists($this, MigrationInterface::UP) ||
                method_exists($this, MigrationInterface::DOWN) ) {
                $this->output->writeln(sprintf(
                    '<comment>warning</comment> Migration contains both change() and/or up()/down() methods.  <options=bold>Ignoring up() and down()</>.'
                ));
            }
        }
    }
public function preFlightCheck ( $ direction = null ) { if ( method_exists ( $ this , MigrationInterface :: CHANGE ) ) { if ( method_exists ( $ this , MigrationInterface :: UP ) || method_exists ( $ this , MigrationInterface :: DOWN ) ) { $ this -> output -> writeln ( sprintf ( '<comment>warning</comment> Migration contains both change() and/or up()/down() methods.  <options=bold>Ignoring up() and down()</>.' ) ) ; } } }
Perform checks on the migration, print a warning
if there are potential problems.

Right now, the only check is if there is both a `change()` and
an `up()` or a `down()` method.

@param string|null $direction

@return void
Perform checks on the migration print a warning if there are potential problems .