Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type hint MigrationRunner methods #1585

Merged
merged 3 commits into from
Dec 6, 2018

Conversation

natanfelles
Copy link
Contributor

Description

Fixes #1577

Checklist:

  • Securely signed commits
  • Component(s) with PHPdocs
  • Unit testing, with >80% coverage
  • User guide updated
  • Conforms to style guide

@@ -436,7 +436,7 @@ protected function checkMigrations(array $migrations, string $method, int $targe
}

// Check if $targetversion file is found
if ($targetversion !== 0 && ! array_key_exists($targetversion, $migrations))
if ($targetversion !== '0' && ! array_key_exists($targetversion, $migrations))
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

String needed because the Coding Standard forces strict comparisons !==.

@jim-parry jim-parry merged commit e76149e into codeigniter4:develop Dec 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants