@@ -82,7 +82,7 @@ class Migration
82
82
*
83
83
* @var AbstractAdapter
84
84
*/
85
- protected static $ connection ;
85
+ protected static AbstractAdapter $ connection ;
86
86
87
87
/**
88
88
* Database configuration
@@ -343,10 +343,6 @@ public static function migrate(
343
343
/**
344
344
* Create migration object for specified version
345
345
*
346
- * @param ItemInterface $version
347
- * @param string $tableName
348
- *
349
- * @return null|Migration
350
346
* @throws Exception
351
347
*/
352
348
private static function createClass (ItemInterface $ version , string $ tableName ): ?Migration
@@ -374,12 +370,7 @@ private static function createClass(ItemInterface $version, string $tableName):
374
370
/**
375
371
* Find the last morph function in the previous migration files
376
372
*
377
- * @param ItemInterface $toVersion
378
- * @param string $tableName
379
- *
380
- * @return null|Migration
381
373
* @throws Exception
382
- * @internal param ItemInterface $version
383
374
*/
384
375
private static function createPrevClassWithMorphMethod (ItemInterface $ toVersion , string $ tableName ): ?Migration
385
376
{
@@ -404,10 +395,6 @@ private static function createPrevClassWithMorphMethod(ItemInterface $toVersion,
404
395
405
396
/**
406
397
* Scan for all versions
407
- *
408
- * @param string $dir Directory to scan
409
- *
410
- * @return ItemInterface[]
411
398
*/
412
399
public static function scanForVersions (string $ dir ): array
413
400
{
@@ -427,11 +414,6 @@ public static function scanForVersions(string $dir): array
427
414
428
415
/**
429
416
* Look for table definition modifications and apply to real table
430
- *
431
- * @param string $tableName
432
- * @param array $definition
433
- *
434
- * @throws DbException
435
417
*/
436
418
public function morphTable (string $ tableName , array $ definition ): void
437
419
{
@@ -774,12 +756,8 @@ public function morphTable(string $tableName, array $definition): void
774
756
775
757
/**
776
758
* Inserts data from a data migration file in a table
777
- *
778
- * @param string $tableName
779
- * @param mixed $fields
780
- * @param int $size Insert batch size
781
759
*/
782
- public function batchInsert (string $ tableName , $ fields , int $ size = 1024 ): void
760
+ public function batchInsert (string $ tableName , array $ fields , int $ size = 1024 ): void
783
761
{
784
762
$ migrationData = self ::$ migrationPath . $ this ->version . '/ ' . $ tableName . '.dat ' ;
785
763
if (!file_exists ($ migrationData )) {
@@ -882,10 +860,6 @@ protected function executeMultiInsert(string $table, array $columns, string $val
882
860
883
861
/**
884
862
* Resolves the DB Schema
885
- *
886
- * @param Config $config
887
- *
888
- * @return null|string
889
863
*/
890
864
public static function resolveDbSchema (Config $ config ): ?string
891
865
{
0 commit comments