Completed
Pull Request — master (#1627)
by Alexandr
01:48
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/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.
src/Phinx/Db/Adapter/SqlServerAdapter.php 1 patch
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -637,6 +637,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.