Fix typos in migration levels related strings

[MAILPOET-5416]
This commit is contained in:
Rostislav Wolny
2023-07-26 10:21:19 +02:00
committed by Aschepikov
parent acd5846f70
commit 33e7e2d5f1
3 changed files with 3 additions and 3 deletions

View File

@ -448,7 +448,7 @@ class RoboFile extends \Robo\Tasks {
} }
/** /**
* Creates a new migration file. Use `migrations:new db` for a bb level migration or `migrations:new app` for app level migration. * Creates a new migration file. Use `migrations:new db` for a db level migration or `migrations:new app` for app level migration.
* @param $level string - db or app * @param $level string - db or app
*/ */
public function migrationsNew($level) { public function migrationsNew($level) {

View File

@ -14,7 +14,7 @@ class MigratorException extends InvalidStateException {
public static function invalidMigrationLevel(string $level): self { public static function invalidMigrationLevel(string $level): self {
return self::create()->withMessage( return self::create()->withMessage(
sprintf('Migration level "%s" is not supported! Use "app" of "db".', $level) sprintf('Migration level "%s" is not supported! Use "app" or "db".', $level)
); );
} }

View File

@ -55,7 +55,7 @@ class RepositoryTest extends MailPoetUnitTest {
]); ]);
$this->expectException(MigratorException::class); $this->expectException(MigratorException::class);
$this->expectExceptionMessage(sprintf('Migration level "%s" is not supported! Use "app" of "db".', 'abc')); $this->expectExceptionMessage(sprintf('Migration level "%s" is not supported! Use "app" or "db".', 'abc'));
$repository->create('abc'); $repository->create('abc');
} }