From d1fa6e741922c1cfc3759815a6c07b48b643e91b Mon Sep 17 00:00:00 2001 From: zyimm Date: Wed, 11 Jan 2023 15:55:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E6=8C=81=E5=A4=9A=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- phinx/src/Phinx/Migration/AbstractMigration.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/phinx/src/Phinx/Migration/AbstractMigration.php b/phinx/src/Phinx/Migration/AbstractMigration.php index d711b7c..91f629b 100644 --- a/phinx/src/Phinx/Migration/AbstractMigration.php +++ b/phinx/src/Phinx/Migration/AbstractMigration.php @@ -50,7 +50,7 @@ abstract class AbstractMigration implements MigrationInterface * * @var string|array */ - protected $dbConfig = null; + protected $db_config = null; /** * @var float @@ -271,15 +271,16 @@ abstract class AbstractMigration implements MigrationInterface * A short-hand method to drop the given database table. * * @param string $tableName Table Name + * * @return void */ - public function dropTable($tableName) + public function dropTable(string $tableName) { $this->table($tableName)->drop(); } public function getDbConfig() { - return $this->dbConfig; + return $this->db_config; } }