Skip to content

Commit

Permalink
chore(deps): update dependency phpstan/phpstan to v1.11.8
Browse files Browse the repository at this point in the history
  • Loading branch information
renovate[bot] authored Jul 24, 2024
1 parent 0d89734 commit d39f970
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 10 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"nyholm/psr7": "^1.5",
"phpbench/phpbench": "^1.2",
"phpstan/extension-installer": "^1.1",
"phpstan/phpstan": "1.11.7",
"phpstan/phpstan": "1.11.8",
"phpstan/phpstan-phpunit": "1.4.0",
"phpstan/phpstan-strict-rules": "1.6.0",
"phpunit/phpunit": "^9.5 || ^10.5.21",
Expand Down
4 changes: 1 addition & 3 deletions src/Executor/ReferenceExecutor.php
Original file line number Diff line number Diff line change
Expand Up @@ -772,9 +772,7 @@ protected function completeValueCatchingError(
try {
$promise = $this->getPromise($result);
if ($promise !== null) {
$completed = $promise->then(function (&$resolved) use ($contextValue, $returnType, $fieldNodes, $info, $path, $unaliasedPath) {
return $this->completeValue($returnType, $fieldNodes, $info, $path, $unaliasedPath, $resolved, $contextValue);
});
$completed = $promise->then(fn (&$resolved) => $this->completeValue($returnType, $fieldNodes, $info, $path, $unaliasedPath, $resolved, $contextValue));
} else {
$completed = $this->completeValue($returnType, $fieldNodes, $info, $path, $unaliasedPath, $result, $contextValue);
}
Expand Down
4 changes: 1 addition & 3 deletions src/Validator/Rules/UniqueOperationNames.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,7 @@ public function getVisitor(QueryValidationContext $context): array

return Visitor::skipNode();
},
NodeKind::FRAGMENT_DEFINITION => static function (): VisitorOperation {
return Visitor::skipNode();
},
NodeKind::FRAGMENT_DEFINITION => static fn (): VisitorOperation => Visitor::skipNode(),
];
}

Expand Down
4 changes: 1 addition & 3 deletions tests/StarWarsSchema.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,7 @@ public static function build(): Schema
$fieldSelection['id'] = true;

return \array_map(
static function ($friend) use ($fieldSelection): array {
return \array_intersect_key($friend, $fieldSelection);
},
static fn ($friend): array => \array_intersect_key($friend, $fieldSelection),
StarWarsData::friends($human)
);
},
Expand Down

0 comments on commit d39f970

Please sign in to comment.