Skip to content

Commit

Permalink
fix one php warning
Browse files Browse the repository at this point in the history
  • Loading branch information
gggeek committed Nov 27, 2017
1 parent 9a6cbbc commit c05a174
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Core/MigrationService.php
Original file line number Diff line number Diff line change
Expand Up @@ -574,6 +574,7 @@ public function restoreContext($migrationName, array $context)

protected function getEntityName($migration)
{
return strtolower(preg_replace('/Definition$/', '', end(explode('\\', get_class($migration)))));
$array = explode('\\', get_class($migration));
return strtolower(preg_replace('/Definition$/', '', end($array)));
}
}

0 comments on commit c05a174

Please sign in to comment.