Skip to content

Commit d39f970

Browse files
chore(deps): update dependency phpstan/phpstan to v1.11.8
1 parent 0d89734 commit d39f970

File tree

4 files changed

+4
-10
lines changed

4 files changed

+4
-10
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"nyholm/psr7": "^1.5",
2424
"phpbench/phpbench": "^1.2",
2525
"phpstan/extension-installer": "^1.1",
26-
"phpstan/phpstan": "1.11.7",
26+
"phpstan/phpstan": "1.11.8",
2727
"phpstan/phpstan-phpunit": "1.4.0",
2828
"phpstan/phpstan-strict-rules": "1.6.0",
2929
"phpunit/phpunit": "^9.5 || ^10.5.21",

src/Executor/ReferenceExecutor.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -772,9 +772,7 @@ protected function completeValueCatchingError(
772772
try {
773773
$promise = $this->getPromise($result);
774774
if ($promise !== null) {
775-
$completed = $promise->then(function (&$resolved) use ($contextValue, $returnType, $fieldNodes, $info, $path, $unaliasedPath) {
776-
return $this->completeValue($returnType, $fieldNodes, $info, $path, $unaliasedPath, $resolved, $contextValue);
777-
});
775+
$completed = $promise->then(fn (&$resolved) => $this->completeValue($returnType, $fieldNodes, $info, $path, $unaliasedPath, $resolved, $contextValue));
778776
} else {
779777
$completed = $this->completeValue($returnType, $fieldNodes, $info, $path, $unaliasedPath, $result, $contextValue);
780778
}

src/Validator/Rules/UniqueOperationNames.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,7 @@ public function getVisitor(QueryValidationContext $context): array
3636

3737
return Visitor::skipNode();
3838
},
39-
NodeKind::FRAGMENT_DEFINITION => static function (): VisitorOperation {
40-
return Visitor::skipNode();
41-
},
39+
NodeKind::FRAGMENT_DEFINITION => static fn (): VisitorOperation => Visitor::skipNode(),
4240
];
4341
}
4442

tests/StarWarsSchema.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,9 +175,7 @@ public static function build(): Schema
175175
$fieldSelection['id'] = true;
176176

177177
return \array_map(
178-
static function ($friend) use ($fieldSelection): array {
179-
return \array_intersect_key($friend, $fieldSelection);
180-
},
178+
static fn ($friend): array => \array_intersect_key($friend, $fieldSelection),
181179
StarWarsData::friends($human)
182180
);
183181
},

0 commit comments

Comments
 (0)