ruckus / ruckusing-migrations

Database migrations for PHP ala ActiveRecord Migrations with support for MySQL, Postgres, SQLite
Other
506 stars 95 forks source link

fix: don't exit on deprecation warnings #184

Closed james-mckinnon closed 4 years ago

james-mckinnon commented 4 years ago

This PR is to stop ruckusing-migrations exiting on deprecation warnings.

Creating a migration to move from using mcrypt to openssl resulted in the migration failing to complete due to the mcrypt functions being deprecated. Trying to suppress deprecation warnings wouldn't work as the error handler forcibly exits if the error isn't E_WARNING or E_NOTICE. I've added E_DEPRECATED in as well so that the message still shows, but the migration will continue.

ruckus commented 4 years ago

Thanks! I didn't think this project had much usage any more. :)