Skip to content

Commit

Permalink
Type hint methods
Browse files Browse the repository at this point in the history
  • Loading branch information
natanfelles committed Nov 10, 2018
1 parent b597db5 commit 08fbcbb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions system/Database/MigrationRunner.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,14 +179,14 @@ public function __construct(BaseConfig $config, ConnectionInterface $db = null)
* Calls each migration step required to get to the schema version of
* choice
*
* @param string $targetVersion Target schema version
* @param string $namespace
* @param string $group
* @param integer $targetVersion Target schema version
* @param string|null $namespace
* @param string|null $group
*
* @return mixed TRUE if no migrations are found, current version string on success, FALSE on failure
* @throws ConfigException
*/
public function version(string $targetVersion, $namespace = null, $group = null)
public function version(int $targetVersion, string $namespace = null, string $group = null)
{
if (! $this->enabled)
{
Expand Down Expand Up @@ -423,7 +423,7 @@ public function findMigrations()
*
* @return boolean
*/
protected function checkMigrations($migrations, $method, $targetversion)
protected function checkMigrations(array $migrations, string $method, int $targetversion)
{
// Check if no migrations found
if (empty($migrations))
Expand Down

0 comments on commit 08fbcbb

Please sign in to comment.