Skip to content

Commit d843bd5

Browse files
Merge pull request #160 from smpn2/fix/type
feat: php 8.4 support
2 parents 01c02a9 + 4e6b65c commit d843bd5

File tree

9 files changed

+9
-9
lines changed

9 files changed

+9
-9
lines changed

src/Phpmig/Console/Command/CheckCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ protected function configure()
3535
/**
3636
* {@inheritdoc}
3737
*/
38-
protected function execute(InputInterface $input, OutputInterface $output)
38+
protected function execute(InputInterface $input, OutputInterface $output): int
3939
{
4040
$this->bootstrap($input, $output);
4141
$versions = $this->getAdapter()->fetchAll();

src/Phpmig/Console/Command/DownCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ protected function configure()
4747
/**
4848
* {@inheritdoc}
4949
*/
50-
protected function execute(InputInterface $input, OutputInterface $output)
50+
protected function execute(InputInterface $input, OutputInterface $output): int
5151
{
5252
$this->bootstrap($input, $output);
5353

src/Phpmig/Console/Command/GenerateCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ protected function configure()
5050
/**
5151
* {@inheritdoc}
5252
*/
53-
protected function execute(InputInterface $input, OutputInterface $output)
53+
protected function execute(InputInterface $input, OutputInterface $output): int
5454
{
5555
$this->bootstrap($input, $output);
5656

src/Phpmig/Console/Command/MigrateCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ protected function configure()
4848
/**
4949
* {@inheritdoc}
5050
*/
51-
protected function execute(InputInterface $input, OutputInterface $output)
51+
protected function execute(InputInterface $input, OutputInterface $output): int
5252
{
5353
$this->bootstrap($input, $output);
5454

src/Phpmig/Console/Command/RedoCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ protected function configure()
4747
/**
4848
* {@inheritdoc}
4949
*/
50-
protected function execute(InputInterface $input, OutputInterface $output)
50+
protected function execute(InputInterface $input, OutputInterface $output): int
5151
{
5252
$this->bootstrap($input, $output);
5353

src/Phpmig/Console/Command/RollbackCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ protected function configure()
4848
/**
4949
* {@inheritdoc}
5050
*/
51-
protected function execute(InputInterface $input, OutputInterface $output)
51+
protected function execute(InputInterface $input, OutputInterface $output): int
5252
{
5353
$this->bootstrap($input, $output);
5454

src/Phpmig/Console/Command/StatusCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ protected function configure()
4545
/**
4646
* {@inheritdoc}
4747
*/
48-
protected function execute(InputInterface $input, OutputInterface $output)
48+
protected function execute(InputInterface $input, OutputInterface $output): int
4949
{
5050
$this->bootstrap($input, $output);
5151
$output->writeln("");

src/Phpmig/Console/Command/UpCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ protected function configure()
4747
/**
4848
* {@inheritdoc}
4949
*/
50-
protected function execute(InputInterface $input, OutputInterface $output)
50+
protected function execute(InputInterface $input, OutputInterface $output): int
5151
{
5252
$this->bootstrap($input, $output);
5353

tests/Phpmig/Api/PhpmigApplicationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ protected function cleanTempDir()
317317
rmdir($dir);
318318
}
319319

320-
protected function createTestMigrations(array $migrations, array $class_names = null, $extends = "Migration")
320+
protected function createTestMigrations(array $migrations, ?array $class_names = null, $extends = "Migration")
321321
{
322322
$class =<<< 'CODE'
323323
<?php

0 commit comments

Comments
 (0)