Skip to content

Commit 646d39a

Browse files
committed
Apply rector rules
1 parent 4d01b0f commit 646d39a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/Unit/Valinor/Transformer/CamelToSnakeCaseTransformerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public function testItConvertsCamelCaseKeysToSnakeCase(): void
1515

1616
$result = $transformer(
1717
new class() {},
18-
static fn() => ['firstName' => 'Jane', 'URLValue' => 'value'],
18+
static fn(): array => ['firstName' => 'Jane', 'URLValue' => 'value'],
1919
);
2020

2121
$this->assertSame(['first_name' => 'Jane', 'u_r_l_value' => 'value'], $result);
@@ -27,7 +27,7 @@ public function testItKeepsNonStringKeysUntouched(): void
2727

2828
$result = $transformer(
2929
new class() {},
30-
static fn() => [10 => 'ten', 'userName' => 'jane'],
30+
static fn(): array => [10 => 'ten', 'userName' => 'jane'],
3131
);
3232

3333
$this->assertSame([10 => 'ten', 'user_name' => 'jane'], $result);

0 commit comments

Comments
 (0)