Completed
Pull Request — master (#1672)
by Mark
01:29
created
src/Phinx/Db/Util/AlterInstructions.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
src/Phinx/Migration/Manager/Environment.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -203,7 +203,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
src/Phinx/Console/Command/Create.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
src/Phinx/Console/Command/SeedCreate.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
src/Phinx/Db/Adapter/MysqlAdapter.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1283,7 +1283,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
src/Phinx/Db/Adapter/SqlServerAdapter.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -640,6 +640,8 @@  discard block
 block discarded – undo
640 640
 
641 641
     /**
642 642
      * @inheritDoc
643
+     * @param string $tableName
644
+     * @param string|null $columnName
643 645
      */
644 646
     protected function getDropDefaultConstraint($tableName, $columnName)
645 647
     {
@@ -652,6 +654,9 @@  discard block
 block discarded – undo
652 654
         return $this->getDropForeignKeyInstructions($tableName, $defaultConstraint);
653 655
     }
654 656
 
657
+    /**
658
+     * @return string
659
+     */
655 660
     protected function getDefaultConstraint($tableName, $columnName)
656 661
     {
657 662
         $sql = "SELECT
@@ -1228,6 +1233,7 @@  discard block
 block discarded – undo
1228 1233
      * Gets the SqlServer Index Definition for an Index object.
1229 1234
      *
1230 1235
      * @param \Phinx\Db\Table\Index $index Index
1236
+     * @param string $tableName
1231 1237
      *
1232 1238
      * @return string
1233 1239
      */
@@ -1254,6 +1260,7 @@  discard block
 block discarded – undo
1254 1260
      * Gets the SqlServer Foreign Key Definition for an ForeignKey object.
1255 1261
      *
1256 1262
      * @param \Phinx\Db\Table\ForeignKey $foreignKey
1263
+     * @param string $tableName
1257 1264
      *
1258 1265
      * @return string
1259 1266
      */
Please login to merge, or discard this patch.
src/Phinx/Db/Table.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -284,8 +284,8 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Phinx/Wrapper/TextWrapper.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -209,7 +209,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.