Skip to content

Commit 3eeca3d

Browse files
committed
Update dev tools
1 parent e0fc015 commit 3eeca3d

File tree

2 files changed

+16
-9
lines changed

2 files changed

+16
-9
lines changed

composer.json

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,29 +54,36 @@
5454
"platform-check": false
5555
},
5656
"scripts": {
57+
"ci:cgl": [
58+
"php-cs-fixer fix --diff --verbose --cache-file .build/.php-cs-fixer.cache"
59+
],
60+
"ci:rector": [
61+
"rector process --config rector.php"
62+
],
63+
"ci:test:php:cgl": [
64+
"@ci:cgl --dry-run"
65+
],
5766
"ci:test:php:lint": [
5867
"phplint"
5968
],
6069
"ci:test:php:unit": [
6170
"phpunit"
6271
],
6372
"ci:test:php:phpstan": [
64-
"phpstan analyze"
73+
"phpstan analyze --memory-limit=-1"
6574
],
6675
"ci:test:php:phpstan:baseline": [
67-
"phpstan analyze --generate-baseline phpstan-baseline.neon --allow-empty-baseline"
76+
"phpstan analyze --memory-limit=-1 --generate-baseline phpstan-baseline.neon --allow-empty-baseline"
6877
],
6978
"ci:test:php:rector": [
70-
"rector process --config rector.php --dry-run"
79+
"@ci:rector --dry-run"
7180
],
7281
"ci:test": [
7382
"@ci:test:php:lint",
7483
"@ci:test:php:phpstan",
7584
"@ci:test:php:rector",
76-
"@ci:test:php:unit"
77-
],
78-
"ci:cgl": [
79-
"php-cs-fixer fix --diff --verbose"
85+
"@ci:test:php:unit",
86+
"@ci:test:php:cgl"
8087
]
8188
}
8289
}

src/JsonMapper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public function __construct(
9696
PropertyInfoExtractorInterface $extractor,
9797
PropertyAccessorInterface $accessor,
9898
?PropertyNameConverterInterface $nameConverter = null,
99-
array $classMap = []
99+
array $classMap = [],
100100
) {
101101
$this->extractor = $extractor;
102102
$this->accessor = $accessor;
@@ -696,7 +696,7 @@ private function getClassName(mixed $json, Type $type): string
696696
/**
697697
* Cast node to a collection.
698698
*
699-
* @param null|array<mixed>|object $json
699+
* @param array<mixed>|object|null $json
700700
* @param Type $type
701701
*
702702
* @return mixed[]|null

0 commit comments

Comments
 (0)