Skip to content

Commit

Permalink
remove deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
nikophil committed Dec 21, 2021
1 parent e505df9 commit c20879c
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions Command/MigrationsExecuteCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
*/
class MigrationsExecuteCommand extends ExecuteCommand
{
protected function configure()
protected function configure(): void
{
parent::configure();

Expand All @@ -32,7 +32,7 @@ protected function configure()
;
}

public function execute(InputInterface $input, OutputInterface $output)
public function execute(InputInterface $input, OutputInterface $output): int
{
/** @var Application $application */
$application = $this->getApplication();
Expand Down
4 changes: 2 additions & 2 deletions Command/MigrationsGenerateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
*/
class MigrationsGenerateCommand extends GenerateCommand
{
protected function configure()
protected function configure(): void
{
parent::configure();

Expand All @@ -32,7 +32,7 @@ protected function configure()
;
}

public function execute(InputInterface $input, OutputInterface $output)
public function execute(InputInterface $input, OutputInterface $output): int
{
/** @var Application $application */
$application = $this->getApplication();
Expand Down
4 changes: 2 additions & 2 deletions Command/MigrationsMigrateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
*/
class MigrationsMigrateCommand extends MigrateCommand
{
protected function configure()
protected function configure(): void
{
parent::configure();

Expand All @@ -32,7 +32,7 @@ protected function configure()
;
}

public function execute(InputInterface $input, OutputInterface $output)
public function execute(InputInterface $input, OutputInterface $output): int
{
/** @var Application $application */
$application = $this->getApplication();
Expand Down
4 changes: 2 additions & 2 deletions Command/MigrationsStatusCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
*/
class MigrationsStatusCommand extends StatusCommand
{
protected function configure()
protected function configure(): void
{
parent::configure();

Expand All @@ -32,7 +32,7 @@ protected function configure()
;
}

public function execute(InputInterface $input, OutputInterface $output)
public function execute(InputInterface $input, OutputInterface $output): int
{
/** @var Application $application */
$application = $this->getApplication();
Expand Down
4 changes: 2 additions & 2 deletions Command/MigrationsVersionCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
*/
class MigrationsVersionCommand extends VersionCommand
{
protected function configure()
protected function configure(): void
{
parent::configure();

Expand All @@ -32,7 +32,7 @@ protected function configure()
;
}

public function execute(InputInterface $input, OutputInterface $output)
public function execute(InputInterface $input, OutputInterface $output): int
{
/** @var Application $application */
$application = $this->getApplication();
Expand Down
2 changes: 1 addition & 1 deletion DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class Configuration implements ConfigurationInterface
*
* @return \Symfony\Component\Config\Definition\Builder\TreeBuilder The config tree builder
*/
public function getConfigTreeBuilder()
public function getConfigTreeBuilder(): TreeBuilder
{
$treeBuilder = new TreeBuilder('mongo_db_migrations', 'array');
$rootNode = method_exists(TreeBuilder::class, 'getRootNode') ? $treeBuilder->getRootNode() : $treeBuilder->root('mongo_db_migrations', 'array');
Expand Down
2 changes: 1 addition & 1 deletion DependencyInjection/MongoDBMigrationsExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function load(array $configs, ContainerBuilder $container)
/**
* {@inheritdoc}
*/
public function getAlias()
public function getAlias(): string
{
return 'mongo_db_migrations';
}
Expand Down

0 comments on commit c20879c

Please sign in to comment.