@@ -90,7 +90,7 @@ class MigrationRunner
9090 /**
9191 * used to return messages for CLI.
9292 *
93- * @var array
93+ * @var list<string>
9494 */
9595 protected $ cliMessages = [];
9696
@@ -139,7 +139,7 @@ class MigrationRunner
139139 * default DB group so that it creates the `migrations` table in the default
140140 * DB group. Therefore, passing $db is for testing purposes only.
141141 *
142- * @param array|ConnectionInterface|string|null $db DB group. For testing purposes only.
142+ * @param array<string, mixed> |ConnectionInterface|string|null $db DB group. For testing purposes only.
143143 *
144144 * @throws ConfigException
145145 */
@@ -440,7 +440,7 @@ public function force(string $path, string $namespace, ?string $group = null)
440440 /**
441441 * Retrieves list of available migration scripts
442442 *
443- * @return array List of all located migrations by their UID
443+ * @return array<string, stdClass> List of all located migrations by their UID
444444 */
445445 public function findMigrations (): array
446446 {
@@ -465,6 +465,8 @@ public function findMigrations(): array
465465
466466 /**
467467 * Retrieves a list of available migration scripts for one namespace
468+ *
469+ * @return list<stdClass>
468470 */
469471 public function findNamespaceMigrations (string $ namespace ): array
470472 {
@@ -610,6 +612,8 @@ public function getObjectUid($object): string
610612
611613 /**
612614 * Retrieves messages formatted for CLI output
615+ *
616+ * @return list<string>
613617 */
614618 public function getCliMessages (): array
615619 {
@@ -693,6 +697,8 @@ protected function removeHistory($history)
693697
694698 /**
695699 * Grabs the full migration history from the database for a group
700+ *
701+ * @return list<stdClass>
696702 */
697703 public function getHistory (string $ group = 'default ' ): array
698704 {
@@ -719,6 +725,8 @@ public function getHistory(string $group = 'default'): array
719725 * Returns the migration history for a single batch.
720726 *
721727 * @param string $order
728+ *
729+ * @return list<stdClass>
722730 */
723731 public function getBatchHistory (int $ batch , $ order = 'asc ' ): array
724732 {
@@ -734,6 +742,8 @@ public function getBatchHistory(int $batch, $order = 'asc'): array
734742
735743 /**
736744 * Returns all the batches from the database history in order
745+ *
746+ * @return list<int>
737747 */
738748 public function getBatches (): array
739749 {
0 commit comments