From c724465d79af50c2b4579130f4d3cd02c2ee0b73 Mon Sep 17 00:00:00 2001 From: Romain Neutron Date: Mon, 3 Mar 2014 14:21:14 +0100 Subject: [PATCH] Make doctrine migration up and down method final --- .../Phrasea/Setup/DoctrineMigrations/AbstractMigration.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Alchemy/Phrasea/Setup/DoctrineMigrations/AbstractMigration.php b/lib/Alchemy/Phrasea/Setup/DoctrineMigrations/AbstractMigration.php index 8ce41c2e38..89a0a497f9 100644 --- a/lib/Alchemy/Phrasea/Setup/DoctrineMigrations/AbstractMigration.php +++ b/lib/Alchemy/Phrasea/Setup/DoctrineMigrations/AbstractMigration.php @@ -54,7 +54,7 @@ abstract class AbstractMigration extends BaseMigration /** * @inheritdoc */ - public function up(Schema $schema) + final public function up(Schema $schema) { $this->abortIf($this->connection->getDatabasePlatform()->getName() != "mysql", "Migration can only be executed safely on 'mysql'."); @@ -66,7 +66,7 @@ abstract class AbstractMigration extends BaseMigration /** * @inheritdoc */ - public function down(Schema $schema) + final public function down(Schema $schema) { $this->abortIf($this->connection->getDatabasePlatform()->getName() != "mysql", "Migration can only be executed safely on 'mysql'.");