Skip to content

Commit 38abfb1

Browse files
committed
Database MigrationRunner typos changes
1 parent a45a605 commit 38abfb1

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

system/Database/MigrationRunner.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ public function latest(string $namespace = null, string $group = null)
342342
*
343343
* @return boolean
344344
*/
345-
public function latestAll(string $group = null)
345+
public function latestAll(string $group = null): bool
346346
{
347347
$this->ensureTable();
348348

@@ -387,7 +387,7 @@ public function latestAll(string $group = null)
387387
*
388388
* @param string|null $group
389389
*
390-
* @return mixed TRUE if no migrations are found, current version string on success, FALSE on failure
390+
* @return mixed Current version string on success, FALSE on failure or no migrations are found
391391
*/
392392
public function current(string $group = null)
393393
{
@@ -409,7 +409,7 @@ public function current(string $group = null)
409409
*
410410
* @return array list of migrations as $version for one namespace
411411
*/
412-
public function findMigrations()
412+
public function findMigrations(): array
413413
{
414414
$migrations = [];
415415

@@ -674,7 +674,7 @@ protected function getMigrationName(string $migration)
674674
*
675675
* @return string Current migration version
676676
*/
677-
protected function getVersion()
677+
protected function getVersion(): string
678678
{
679679
$this->ensureTable();
680680

0 commit comments

Comments
 (0)