Skip to content

Commit bcf8f0c

Browse files
committed
Database Migration typos changes
1 parent f33c1ee commit bcf8f0c

2 files changed

Lines changed: 8 additions & 5 deletions

File tree

system/Database/Migration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public function __construct(Forge $forge = null)
8686
*
8787
* @return string
8888
*/
89-
public function getDBGroup()
89+
public function getDBGroup(): string
9090
{
9191
return $this->DBGroup;
9292
}

system/Database/MigrationRunner.php

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,7 @@ public function setName(string $name)
601601
*
602602
* @return array
603603
*/
604-
public function getHistory(string $group = 'default')
604+
public function getHistory(string $group = 'default'): array
605605
{
606606
$this->ensureTable();
607607

@@ -645,7 +645,7 @@ public function setSilent(bool $silent)
645645
*
646646
* @return string Numeric portion of a migration filename
647647
*/
648-
protected function getMigrationNumber(string $migration)
648+
protected function getMigrationNumber(string $migration): string
649649
{
650650
return sscanf($migration, '%[0-9]+', $number) ? $number : '0';
651651
}
@@ -659,7 +659,7 @@ protected function getMigrationNumber(string $migration)
659659
*
660660
* @return string text portion of a migration filename
661661
*/
662-
protected function getMigrationName(string $migration)
662+
protected function getMigrationName(string $migration): string
663663
{
664664
$parts = explode('_', $migration);
665665
array_shift($parts);
@@ -695,7 +695,7 @@ protected function getVersion(): string
695695
*
696696
* @return array Current migration version
697697
*/
698-
public function getCliMessages()
698+
public function getCliMessages(): array
699699
{
700700
return $this->cliMessages;
701701
}
@@ -708,6 +708,8 @@ public function getCliMessages()
708708
* @param string $version
709709
*
710710
* @internal param string $migration Migration reached
711+
*
712+
* @return void
711713
*/
712714
protected function addHistory(string $version)
713715
{
@@ -731,6 +733,7 @@ protected function addHistory(string $version)
731733
* Removes a single history
732734
*
733735
* @param string $version
736+
* @return void
734737
*/
735738
protected function removeHistory(string $version)
736739
{

0 commit comments

Comments
 (0)