src/Phinx/Migration/AbstractMigration.php
public function postFlightCheck($direction = null)
    {
        foreach ($this->tables as $table) {
            if ($table->hasPendingActions()) {
                throw new \RuntimeException('Migration has pending actions after execution!');
            }
        }
    }
public function postFlightCheck($direction = null)
    {
        foreach ($this->tables as $table) {
            if ($table->hasPendingActions()) {
                throw new \RuntimeException('Migration has pending actions after execution!');
            }
        }
    }
public function postFlightCheck ( $ direction = null ) { foreach ( $ this -> tables as $ table ) { if ( $ table -> hasPendingActions ( ) ) { throw new \ RuntimeException ( 'Migration has pending actions after execution!' ) ; } } }
Perform checks on the migration after completion

Right now, the only check is whether all changes were committed

@param string|null $direction direction of migration

@return void
Perform checks on the migration after completion