Skip to content

Commit 7c8d0b1

Browse files
committed
Apply Rector PHPUnit 10 set
1 parent cf2c77e commit 7c8d0b1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/E2E/TerminateCommandTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function testStubCommand(array $commandLine): void
3737
/**
3838
* @return string[][][]
3939
*/
40-
public function commandLineProvider(): array
40+
public static function commandLineProvider(): array
4141
{
4242
return [
4343
[
@@ -119,7 +119,7 @@ public function testSigTermDuringSleep(int $signal, int $exitCode): void
119119
/**
120120
* @return array<array{int,int}>
121121
*/
122-
public function provideSignals(): array
122+
public static function provideSignals(): array
123123
{
124124
return [
125125
[SIGTERM, 143],

tests/Unit/AbstractTerminableCommandTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ public function testReceiveSignalBeforeCommandBody(int $signal): void
122122
$output = $this->prophesize(OutputInterface::class);
123123
$output->writeln(Argument::containingString('Starting'), OutputInterface::VERBOSITY_VERBOSE)
124124
->shouldBeCalledTimes(1)
125-
->will(function () use ($stubCommand, $signal) {
125+
->will(function () use ($stubCommand, $signal): void {
126126
$stubCommand->handleSignal($signal);
127127
});
128128
$output->writeln('Signal received, skipping execution', OutputInterface::VERBOSITY_NORMAL)
@@ -146,7 +146,7 @@ public function testGetSubscribedSignals(int $signal): void
146146
/**
147147
* @return array{0: int}[]
148148
*/
149-
public function signalProvider(): array
149+
public static function signalProvider(): array
150150
{
151151
return [
152152
[SIGINT],

0 commit comments

Comments
 (0)