Skip to content

Commit 4cf4870

Browse files
chore(deps): update dependency friendsofphp/php-cs-fixer to v3.64.0 (#1605)
1 parent b3b8c5b commit 4cf4870

26 files changed

+80
-80
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"amphp/http-server": "^2.1",
1919
"dms/phpunit-arraysubset-asserts": "dev-master",
2020
"ergebnis/composer-normalize": "^2.28",
21-
"friendsofphp/php-cs-fixer": "3.63.2",
21+
"friendsofphp/php-cs-fixer": "3.64.0",
2222
"mll-lab/php-cs-fixer-config": "^5",
2323
"nyholm/psr7": "^1.5",
2424
"phpbench/phpbench": "^1.2",

src/Error/CoercionError.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public static function make(
2525
string $message,
2626
?array $inputPath,
2727
$invalidValue,
28-
?\Throwable $previous = null
28+
?\Throwable $previous = null,
2929
): self {
3030
$instance = new static($message, null, null, [], null, $previous);
3131
$instance->inputPath = $inputPath;

src/Error/Error.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public function __construct(
8787
?array $path = null,
8888
?\Throwable $previous = null,
8989
?array $extensions = null,
90-
?array $unaliasedPath = null
90+
?array $unaliasedPath = null,
9191
) {
9292
parent::__construct($message, 0, $previous);
9393

src/Executor/ExecutionContext.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public function __construct(
6464
array $variableValues,
6565
array $errors,
6666
callable $fieldResolver,
67-
PromiseAdapter $promiseAdapter
67+
PromiseAdapter $promiseAdapter,
6868
) {
6969
$this->schema = $schema;
7070
$this->fragments = $fragments;

src/Executor/Executor.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public static function execute(
103103
$contextValue = null,
104104
?array $variableValues = null,
105105
?string $operationName = null,
106-
?callable $fieldResolver = null
106+
?callable $fieldResolver = null,
107107
): ExecutionResult {
108108
$promiseAdapter = new SyncPromiseAdapter();
109109

@@ -143,7 +143,7 @@ public static function promiseToExecute(
143143
$contextValue = null,
144144
?array $variableValues = null,
145145
?string $operationName = null,
146-
?callable $fieldResolver = null
146+
?callable $fieldResolver = null,
147147
): Promise {
148148
$executor = (self::$implementationFactory)(
149149
$promiseAdapter,

src/Executor/ReferenceExecutor.php

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public static function create(
8787
$contextValue,
8888
array $variableValues,
8989
?string $operationName,
90-
callable $fieldResolver
90+
callable $fieldResolver,
9191
): ExecutorImplementation {
9292
$exeContext = static::buildExecutionContext(
9393
$schema,
@@ -141,7 +141,7 @@ protected static function buildExecutionContext(
141141
array $rawVariableValues,
142142
?string $operationName,
143143
callable $fieldResolver,
144-
PromiseAdapter $promiseAdapter
144+
PromiseAdapter $promiseAdapter,
145145
) {
146146
/** @var array<int, Error> $errors */
147147
$errors = [];
@@ -394,7 +394,7 @@ protected function collectFields(
394394
ObjectType $runtimeType,
395395
SelectionSetNode $selectionSet,
396396
\ArrayObject $fields,
397-
\ArrayObject $visitedFragmentNames
397+
\ArrayObject $visitedFragmentNames,
398398
): \ArrayObject {
399399
$exeContext = $this->exeContext;
400400
foreach ($selectionSet->selections as $selection) {
@@ -606,7 +606,7 @@ protected function resolveField(
606606
string $responseName,
607607
array $path,
608608
array $unaliasedPath,
609-
$contextValue
609+
$contextValue,
610610
) {
611611
$exeContext = $this->exeContext;
612612

@@ -723,7 +723,7 @@ protected function resolveFieldValueOrError(
723723
callable $resolveFn,
724724
$rootValue,
725725
ResolveInfo $info,
726-
$contextValue
726+
$contextValue,
727727
) {
728728
try {
729729
// Build a map of arguments from the field.arguments AST, using the
@@ -765,7 +765,7 @@ protected function completeValueCatchingError(
765765
array $path,
766766
array $unaliasedPath,
767767
$result,
768-
$contextValue
768+
$contextValue,
769769
) {
770770
// Otherwise, error protection is applied, logging the error and resolving
771771
// a null value for this field if one is encountered.
@@ -859,7 +859,7 @@ protected function completeValue(
859859
array $path,
860860
array $unaliasedPath,
861861
&$result,
862-
$contextValue
862+
$contextValue,
863863
) {
864864
// If result is an Error, throw a located error.
865865
if ($result instanceof \Throwable) {
@@ -1002,7 +1002,7 @@ protected function completeListValue(
10021002
array $path,
10031003
array $unaliasedPath,
10041004
iterable &$results,
1005-
$contextValue
1005+
$contextValue,
10061006
) {
10071007
$itemType = $returnType->getWrappedType();
10081008

@@ -1078,7 +1078,7 @@ protected function completeAbstractValue(
10781078
array $path,
10791079
array $unaliasedPath,
10801080
&$result,
1081-
$contextValue
1081+
$contextValue,
10821082
) {
10831083
$typeCandidate = $returnType->resolveType($result, $contextValue, $info);
10841084

@@ -1211,7 +1211,7 @@ protected function completeObjectValue(
12111211
array $path,
12121212
array $unaliasedPath,
12131213
&$result,
1214-
$contextValue
1214+
$contextValue,
12151215
) {
12161216
// If there is an isTypeOf predicate function, call it with the
12171217
// current result. If isTypeOf returns false, then raise an error rather
@@ -1266,7 +1266,7 @@ protected function completeObjectValue(
12661266
protected function invalidReturnTypeError(
12671267
ObjectType $returnType,
12681268
$result,
1269-
\ArrayObject $fieldNodes
1269+
\ArrayObject $fieldNodes,
12701270
): Error {
12711271
$safeResult = Utils::printSafe($result);
12721272

@@ -1294,7 +1294,7 @@ protected function collectAndExecuteSubfields(
12941294
array $path,
12951295
array $unaliasedPath,
12961296
&$result,
1297-
$contextValue
1297+
$contextValue,
12981298
) {
12991299
$subFieldNodes = $this->collectSubFields($returnType, $fieldNodes);
13001300

@@ -1440,7 +1440,7 @@ protected function ensureValidRuntimeType(
14401440
$runtimeTypeOrName,
14411441
AbstractType $returnType,
14421442
ResolveInfo $info,
1443-
&$result
1443+
&$result,
14441444
): ObjectType {
14451445
$runtimeType = \is_string($runtimeTypeOrName)
14461446
? $this->exeContext->schema->getType($runtimeTypeOrName)

src/GraphQL.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public static function executeQuery(
8989
?array $variableValues = null,
9090
?string $operationName = null,
9191
?callable $fieldResolver = null,
92-
?array $validationRules = null
92+
?array $validationRules = null,
9393
): ExecutionResult {
9494
$promiseAdapter = new SyncPromiseAdapter();
9595

@@ -131,7 +131,7 @@ public static function promiseToExecute(
131131
?array $variableValues = null,
132132
?string $operationName = null,
133133
?callable $fieldResolver = null,
134-
?array $validationRules = null
134+
?array $validationRules = null,
135135
): Promise {
136136
try {
137137
$documentNode = $source instanceof DocumentNode

src/Server/Helper.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ protected function promiseToExecuteOperation(
247247
PromiseAdapter $promiseAdapter,
248248
ServerConfig $config,
249249
OperationParams $op,
250-
bool $isBatch = false
250+
bool $isBatch = false,
251251
): Promise {
252252
try {
253253
if ($config->getSchema() === null) {
@@ -357,7 +357,7 @@ protected function resolveValidationRules(
357357
ServerConfig $config,
358358
OperationParams $params,
359359
DocumentNode $doc,
360-
string $operationType
360+
string $operationType,
361361
): ?array {
362362
$validationRules = $config->getValidationRules();
363363

@@ -379,7 +379,7 @@ protected function resolveRootValue(
379379
ServerConfig $config,
380380
OperationParams $params,
381381
DocumentNode $doc,
382-
string $operationType
382+
string $operationType,
383383
) {
384384
$rootValue = $config->getRootValue();
385385

@@ -395,7 +395,7 @@ protected function resolveContextValue(
395395
ServerConfig $config,
396396
OperationParams $params,
397397
DocumentNode $doc,
398-
string $operationType
398+
string $operationType,
399399
) {
400400
$context = $config->getContext();
401401

src/Server/StandardServer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ public function executeRequest($parsedBody = null)
139139
public function processPsrRequest(
140140
RequestInterface $request,
141141
ResponseInterface $response,
142-
StreamInterface $writableBodyStream
142+
StreamInterface $writableBodyStream,
143143
) {
144144
$result = $this->executePsrRequest($request);
145145

src/Type/Definition/ResolveInfo.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ public function __construct(
145145
$rootValue,
146146
OperationDefinitionNode $operation,
147147
array $variableValues,
148-
array $unaliasedPath = []
148+
array $unaliasedPath = [],
149149
) {
150150
$this->fieldDefinition = $fieldDefinition;
151151
$this->fieldName = $fieldDefinition->name;

0 commit comments

Comments
 (0)