| @@ -45,7 +45,7 @@ | ||
| 45 | 45 | * Constructor | 
| 46 | 46 | * | 
| 47 | 47 | * @param array $alterParts SQL snippets to be added to a single ALTER instruction per table | 
| 48 | - * @param array $postSteps SQL commands to be executed after the ALTER instruction | |
| 48 | + * @param string[] $postSteps SQL commands to be executed after the ALTER instruction | |
| 49 | 49 | */ | 
| 50 | 50 | public function __construct(array $alterParts = [], array $postSteps = []) | 
| 51 | 51 |      { | 
| @@ -203,7 +203,7 @@ | ||
| 203 | 203 | /** | 
| 204 | 204 | * Gets the environment's options. | 
| 205 | 205 | * | 
| 206 | - * @return array | |
| 206 | + * @return AdapterInterface | |
| 207 | 207 | */ | 
| 208 | 208 | public function getOptions() | 
| 209 | 209 |      { | 
| @@ -90,7 +90,7 @@ | ||
| 90 | 90 | * | 
| 91 | 91 | * @throws \Exception | 
| 92 | 92 | * | 
| 93 | - * @return mixed | |
| 93 | + * @return string | |
| 94 | 94 | */ | 
| 95 | 95 | protected function getMigrationPath(InputInterface $input, OutputInterface $output) | 
| 96 | 96 |      { | 
| @@ -76,7 +76,7 @@ | ||
| 76 | 76 | * | 
| 77 | 77 | * @throws \Exception | 
| 78 | 78 | * | 
| 79 | - * @return mixed | |
| 79 | + * @return string | |
| 80 | 80 | */ | 
| 81 | 81 | protected function getSeedPath(InputInterface $input, OutputInterface $output) | 
| 82 | 82 |      { | 
| @@ -1283,7 +1283,7 @@ | ||
| 1283 | 1283 | /** | 
| 1284 | 1284 | * Returns MySQL column types (inherited and MySQL specified). | 
| 1285 | 1285 | * | 
| 1286 | - * @return array | |
| 1286 | + * @return string[] | |
| 1287 | 1287 | */ | 
| 1288 | 1288 | public function getColumnTypes() | 
| 1289 | 1289 |      { | 
| @@ -284,8 +284,8 @@ | ||
| 284 | 284 | * | 
| 285 | 285 | * Valid options can be: limit, default, null, precision or scale. | 
| 286 | 286 | * | 
| 287 | - * @param string|\Phinx\Db\Table\Column $columnName Column Name | |
| 288 | - * @param string|\Phinx\Util\Literal|null $type Column Type | |
| 287 | + * @param string $columnName Column Name | |
| 288 | + * @param string $type Column Type | |
| 289 | 289 | * @param array $options Column Options | 
| 290 | 290 | * | 
| 291 | 291 | * @throws \InvalidArgumentException | 
| @@ -209,7 +209,7 @@ | ||
| 209 | 209 | * @param string $key | 
| 210 | 210 | * @param string $value | 
| 211 | 211 | * | 
| 212 | - * @return object | |
| 212 | + * @return TextWrapper | |
| 213 | 213 | */ | 
| 214 | 214 | public function setOption($key, $value) | 
| 215 | 215 |      { | 
| @@ -637,6 +637,8 @@ discard block | ||
| 637 | 637 | |
| 638 | 638 | /** | 
| 639 | 639 | * @inheritDoc | 
| 640 | + * @param string $tableName | |
| 641 | + * @param string|null $columnName | |
| 640 | 642 | */ | 
| 641 | 643 | protected function getDropDefaultConstraint($tableName, $columnName) | 
| 642 | 644 |      { | 
| @@ -649,6 +651,9 @@ discard block | ||
| 649 | 651 | return $this->getDropForeignKeyInstructions($tableName, $defaultConstraint); | 
| 650 | 652 | } | 
| 651 | 653 | |
| 654 | + /** | |
| 655 | + * @return string | |
| 656 | + */ | |
| 652 | 657 | protected function getDefaultConstraint($tableName, $columnName) | 
| 653 | 658 |      { | 
| 654 | 659 | $sql = "SELECT |