laravel/laravel — Issue #297: Migration rollback error
Author: paulboco
Created: 2012-02-01 07:47:08+00:00
State: open

Is anyone else getting this?

```
$ php artisan migrate:make number_one
Great! New migration created!
$ php artisan migrate:make number_two
Great! New migration created!
$ php artisan migrate:make number_three
Great! New migration created!
$ php artisan migrate:make number_four
Great! New migration created!

$ php artisan migrate --env=local
Migrated: application/2012_02_01_013914_number_one
Migrated: application/2012_02_01_013918_number_two
Migrated: application/2012_02_01_013923_number_three
Migrated: application/2012_02_01_013927_number_four

$ php artisan migrate:rollback --env=local
PHP Fatal error: Cannot use object of type stdClass as array in /home/pbc/git/temp/laravel/cli/tasks/migrate/resolver.php on line 135
PHP Stack trace:
PHP 1. {main}() /home/pbc/git/temp/artisan:0
PHP 2. require() /home/pbc/git/temp/artisan:24
PHP 3. Laravel\CLI\Command::run() /home/pbc/git/temp/laravel/cli/artisan.php:58
PHP 4. Laravel\CLI\Tasks\Migrate\Migrator->rollback() /home/pbc/git/temp/laravel/cli/command.php:38
PHP 5. Laravel\CLI\Tasks\Migrate\Resolver->last() /home/pbc/git/temp/laravel/cli/tasks/migrate/migrator.php:105
PHP 6. Laravel\CLI\Tasks\Migrate\Resolver->resolve() /home/pbc/git/temp/laravel/cli/tasks/migrate/resolver.php:79
PHP 7. usort() /home/pbc/git/temp/laravel/cli/tasks/migrate/resolver.php:136
PHP 8. Laravel\CLI\Tasks\Migrate\{closure}() /home/pbc/git/temp/laravel/cli/tasks/migrate/resolver.php:0
```