Skip to content

Commit af47700

Browse files
Remove PHPUnit 11 support
1 parent dce4c0b commit af47700

File tree

9 files changed

+16
-14
lines changed

9 files changed

+16
-14
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,5 @@ composer.phar
99
/tests/app/logs/
1010
/tests/app/data/
1111
var/
12+
13+
.phpunit.cache/

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"symfony/yaml": "^5.4 || ^6.0 || ^7.0",
2727
"doctrine/doctrine-bundle": "^1.5 || ^2.0",
2828
"doctrine/data-fixtures": "^1.3.3",
29-
"phpunit/phpunit": "^9.6.5 || ^10 || ^11",
29+
"phpunit/phpunit": "^9.6.5 || ^10",
3030
"phpspec/prophecy": "^1.14",
3131
"phpspec/prophecy-phpunit": "^2.0"
3232
},

src/Command/DebugTasksCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function __construct($name, TaskExecutionRepositoryInterface $taskExecuti
4242
/**
4343
* {@inheritdoc}
4444
*/
45-
protected function configure()
45+
protected function configure(): void
4646
{
4747
$this->setDescription('Debug tasks')
4848
->setHelp(<<<'EOT'
@@ -60,7 +60,7 @@ protected function configure()
6060
/**
6161
* {@inheritdoc}
6262
*/
63-
protected function execute(InputInterface $input, OutputInterface $output)
63+
protected function execute(InputInterface $input, OutputInterface $output): int
6464
{
6565
$page = $input->getOption('page');
6666
$pageSize = $input->getOption('page-size');

src/Command/ExecuteCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,15 +65,15 @@ public function __construct(
6565
/**
6666
* {@inheritdoc}
6767
*/
68-
protected function configure()
68+
protected function configure(): void
6969
{
7070
$this->addArgument('uuid', InputArgument::REQUIRED);
7171
}
7272

7373
/**
7474
* {@inheritdoc}
7575
*/
76-
protected function execute(InputInterface $input, OutputInterface $output)
76+
protected function execute(InputInterface $input, OutputInterface $output): int
7777
{
7878
$errorOutput = $output instanceof ConsoleOutputInterface ? $output->getErrorOutput() : $output;
7979

src/Command/RunCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function __construct($name, TaskRunnerInterface $runner, TaskSchedulerInt
4848
/**
4949
* {@inheritdoc}
5050
*/
51-
protected function configure()
51+
protected function configure(): void
5252
{
5353
$this->setDescription('Run pending tasks')
5454
->setHelp(<<<'EOT'
@@ -63,7 +63,7 @@ protected function configure()
6363
/**
6464
* {@inheritdoc}
6565
*/
66-
protected function execute(InputInterface $input, OutputInterface $output)
66+
protected function execute(InputInterface $input, OutputInterface $output): int
6767
{
6868
$this->runner->runTasks();
6969
$this->scheduler->scheduleTasks();

src/Command/RunHandlerCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function __construct($name, TaskHandlerFactoryInterface $handlerFactory)
4141
/**
4242
* {@inheritdoc}
4343
*/
44-
protected function configure()
44+
protected function configure(): void
4545
{
4646
$this
4747
->setDescription('Run handler')
@@ -58,7 +58,7 @@ protected function configure()
5858
/**
5959
* {@inheritdoc}
6060
*/
61-
protected function execute(InputInterface $input, OutputInterface $output)
61+
protected function execute(InputInterface $input, OutputInterface $output): int
6262
{
6363
$handlerClass = $input->getArgument('handlerClass');
6464
$workload = $input->getArgument('workload');

src/Command/ScheduleSystemTasksCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public function __construct(
6363
/**
6464
* {@inheritdoc}
6565
*/
66-
protected function configure()
66+
protected function configure(): void
6767
{
6868
$this->setDescription('Schedule system-tasks')->setHelp(
6969
<<<'EOT'
@@ -79,7 +79,7 @@ protected function configure()
7979
/**
8080
* {@inheritdoc}
8181
*/
82-
protected function execute(InputInterface $input, OutputInterface $output)
82+
protected function execute(InputInterface $input, OutputInterface $output): int
8383
{
8484
$output->writeln(sprintf('Schedule %s system-tasks:', count($this->systemTasks)));
8585
$output->writeln('');

src/Command/ScheduleTaskCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function __construct($name, TaskSchedulerInterface $runner)
4242
/**
4343
* {@inheritdoc}
4444
*/
45-
protected function configure()
45+
protected function configure(): void
4646
{
4747
$this
4848
->setDescription('Schedule task')
@@ -66,7 +66,7 @@ protected function configure()
6666
/**
6767
* {@inheritdoc}
6868
*/
69-
protected function execute(InputInterface $input, OutputInterface $output)
69+
protected function execute(InputInterface $input, OutputInterface $output): int
7070
{
7171
$handlerClass = $input->getArgument('handlerClass');
7272
$workload = $input->getArgument('workload');

src/DependencyInjection/Configuration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function __construct(array $lockingStorageAliases)
3636
/**
3737
* {@inheritdoc}
3838
*/
39-
public function getConfigTreeBuilder()
39+
public function getConfigTreeBuilder(): TreeBuilder
4040
{
4141
$treeBuilder = new TreeBuilder('task');
4242

0 commit comments

Comments
 (0)