DX: apply rector rules up to php8.0

This commit is contained in:
2023-04-15 01:05:37 +02:00
parent d8870e906f
commit dde3002100
714 changed files with 2348 additions and 9263 deletions

View File

@@ -305,17 +305,11 @@ final class ExportManagerTest extends KernelTestCase
Argument::is(['cat a', 'cat b']),
Argument::is([])
)
->willReturn(static function ($value) {
switch ($value) {
case '_header': return 'foo_header';
case 'cat a': return 'label cat a';
case 'cat b': return 'label cat b';
default:
throw new RuntimeException(sprintf('This value (%s) is not valid', $value));
}
->willReturn(static fn ($value) => match ($value) {
'_header' => 'foo_header',
'cat a' => 'label cat a',
'cat b' => 'label cat b',
default => throw new RuntimeException(sprintf('This value (%s) is not valid', $value)),
});
$aggregator->addRole()->willReturn(null);
//$aggregator->addRole()->shouldBeCalled();