Skip to content

Commit 53b1047

Browse files
committed
Run rector then ECS
1 parent 1e9debf commit 53b1047

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"lint:stan": "./vendor/bin/phpstan",
2929
"lint:upgrade:check": "vendor/bin/rector process --dry-run",
3030
"lint:upgrade": "vendor/bin/rector process",
31-
"lint": "composer lint:fix && composer lint:upgrade && composer lint:stan",
31+
"lint": "composer lint:upgrade && composer lint:fix && composer lint:stan",
3232
"test": "./vendor/bin/phpunit"
3333
},
3434
"suggest": {

src/Transformers/ArrayItemGetterTransformer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
namespace Wrkflow\GetValue\Transformers;
66

7-
use Wrkflow\GetValue\DataHolders\AbstractData;
87
use Closure;
8+
use Wrkflow\GetValue\DataHolders\AbstractData;
99
use Wrkflow\GetValue\Exceptions\NotSupportedDataException;
1010
use Wrkflow\GetValue\GetValue;
1111

tests/Transformers/GetterTransformerTest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,7 @@ public function testExample(): void
2525

2626
$transformer = new GetterTransformer(fn (GetValue $value, string $key): string => $value->getRequiredString(
2727
'name'
28-
) . ' ' . $value->getRequiredString(
29-
'surname'
30-
), true);
28+
) . ' ' . $value->getRequiredString('surname'), true);
3129

3230
$value = $data->getString('person', transformers: [$transformer]);
3331
$this->assertEquals('Marco Polo', $value);

0 commit comments

Comments
 (0)