Skip to content

Commit bbce114

Browse files
chore(deps): update dependency friendsofphp/php-cs-fixer to v3.77.0 (#1719)
* chore(deps): update dependency friendsofphp/php-cs-fixer to v3.77.0 * Autofix --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
1 parent 0e11cd0 commit bbce114

20 files changed

+49
-60
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.76.0",
21+
"friendsofphp/php-cs-fixer": "3.77.0",
2222
"mll-lab/php-cs-fixer-config": "5.11.0",
2323
"nyholm/psr7": "^1.5",
2424
"phpbench/phpbench": "^1.2",

docs/class-reference.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2599,12 +2599,10 @@ assumeValidSDL?: bool
25992599
* document.
26002600
*
26012601
* @param DocumentNode|Source|string $source
2602+
* @param array<string, bool> $options
26022603
*
26032604
* @phpstan-param TypeConfigDecorator|null $typeConfigDecorator
26042605
* @phpstan-param FieldConfigDecorator|null $fieldConfigDecorator
2605-
*
2606-
* @param array<string, bool> $options
2607-
*
26082606
* @phpstan-param BuildSchemaOptions $options
26092607
*
26102608
* @api
@@ -2632,11 +2630,10 @@ static function build(
26322630
* Given that AST it constructs a @see \GraphQL\Type\Schema. The resulting schema
26332631
* has no resolve methods, so execution will use default resolvers.
26342632
*
2635-
* @phpstan-param TypeConfigDecorator|null $typeConfigDecorator
2636-
* @phpstan-param FieldConfigDecorator|null $fieldConfigDecorator
2637-
*
26382633
* @param array<string, bool> $options
26392634
*
2635+
* @phpstan-param TypeConfigDecorator|null $typeConfigDecorator
2636+
* @phpstan-param FieldConfigDecorator|null $fieldConfigDecorator
26402637
* @phpstan-param BuildSchemaOptions $options
26412638
*
26422639
* @api

src/Executor/ReferenceExecutor.php

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -393,10 +393,10 @@ protected function getOperationRootType(Schema $schema, OperationDefinitionNode
393393
*
394394
* @phpstan-param Fields $fields
395395
*
396-
* @phpstan-return Fields
397-
*
398396
* @throws \Exception
399397
* @throws Error
398+
*
399+
* @phpstan-return Fields
400400
*/
401401
protected function collectFields(
402402
ObjectType $runtimeType,
@@ -596,12 +596,11 @@ function ($results, $responseName) use ($contextValue, $path, $unaliasedPath, $p
596596
* @param list<string|int> $path
597597
* @param list<string|int> $unaliasedPath
598598
* @param mixed $contextValue
599+
* @param \ArrayObject<int, FieldNode> $fieldNodes
599600
*
600601
* @phpstan-param Path $path
601602
* @phpstan-param Path $unaliasedPath
602603
*
603-
* @param \ArrayObject<int, FieldNode> $fieldNodes
604-
*
605604
* @throws Error
606605
* @throws InvariantViolation
607606
*
@@ -765,12 +764,11 @@ protected function resolveFieldValueOrError(
765764
* @param list<string|int> $path
766765
* @param list<string|int> $unaliasedPath
767766
* @param mixed $contextValue
767+
* @param mixed $result
768768
*
769769
* @phpstan-param Path $path
770770
* @phpstan-param Path $unaliasedPath
771771
*
772-
* @param mixed $result
773-
*
774772
* @throws Error
775773
*
776774
* @return array<mixed>|Promise|\stdClass|null
@@ -1321,10 +1319,10 @@ protected function collectAndExecuteSubfields(
13211319
*
13221320
* @param \ArrayObject<int, FieldNode> $fieldNodes
13231321
*
1324-
* @phpstan-return Fields
1325-
*
13261322
* @throws \Exception
13271323
* @throws Error
1324+
*
1325+
* @phpstan-return Fields
13281326
*/
13291327
protected function collectSubFields(ObjectType $returnType, \ArrayObject $fieldNodes): \ArrayObject
13301328
{

src/Language/AST/Node.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,10 @@ public function cloneDeep(): self
6262
*
6363
* @phpstan-param TCloneable $value
6464
*
65-
* @phpstan-return TCloneable
66-
*
6765
* @throws \JsonException
6866
* @throws InvariantViolation
67+
*
68+
* @phpstan-return TCloneable
6969
*/
7070
protected static function cloneValue($value)
7171
{

src/Type/Definition/EnumType.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ class EnumType extends Type implements InputType, OutputType, LeafType, Nullable
6363
private array $nameLookup;
6464

6565
/**
66-
* @throws InvariantViolation
67-
*
6866
* @phpstan-param EnumTypeConfig $config
67+
*
68+
* @throws InvariantViolation
6969
*/
7070
public function __construct(array $config)
7171
{

src/Type/Definition/InputObjectType.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,10 @@ class InputObjectType extends Type implements InputType, NullableType, NamedType
4747
public array $config;
4848

4949
/**
50-
* @throws InvariantViolation
51-
*
5250
* @phpstan-param InputObjectConfig $config
5351
*
5452
* @throws InvariantViolation
53+
* @throws InvariantViolation
5554
*/
5655
public function __construct(array $config)
5756
{

src/Type/Definition/InterfaceType.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ class InterfaceType extends Type implements AbstractType, OutputType, CompositeT
3838
public array $config;
3939

4040
/**
41-
* @throws InvariantViolation
42-
*
4341
* @phpstan-param InterfaceConfig $config
42+
*
43+
* @throws InvariantViolation
4444
*/
4545
public function __construct(array $config)
4646
{

src/Type/Definition/ObjectType.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@ class ObjectType extends Type implements OutputType, CompositeType, NullableType
9494
public array $config;
9595

9696
/**
97-
* @throws InvariantViolation
98-
*
9997
* @phpstan-param ObjectConfig $config
98+
*
99+
* @throws InvariantViolation
100100
*/
101101
public function __construct(array $config)
102102
{

src/Type/Definition/ResolveInfo.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,14 +128,12 @@ class ResolveInfo
128128
/**
129129
* @param \ArrayObject<int, FieldNode> $fieldNodes
130130
* @param list<string|int> $path
131-
*
132-
* @phpstan-param Path $path
133-
*
134131
* @param array<string, FragmentDefinitionNode> $fragments
135132
* @param mixed|null $rootValue
136133
* @param array<string, mixed> $variableValues
137134
* @param list<string|int> $unaliasedPath
138135
*
136+
* @phpstan-param Path $path
139137
* @phpstan-param Path $unaliasedPath
140138
*/
141139
public function __construct(

src/Type/Definition/ScalarType.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ abstract class ScalarType extends Type implements OutputType, InputType, LeafTyp
4545
public array $config;
4646

4747
/**
48-
* @throws InvariantViolation
49-
*
5048
* @phpstan-param ScalarConfig $config
49+
*
50+
* @throws InvariantViolation
5151
*/
5252
public function __construct(array $config = [])
5353
{

0 commit comments

Comments
 (0)