From aa6e8377908c542a24feff83c2c2586372225a55 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 4 May 2026 04:04:12 +0000 Subject: [PATCH 1/5] Update doctrine/coding-standard requirement from ^13.0 to ^13.0 || ^14.0 Updates the requirements on [doctrine/coding-standard](https://github.com/doctrine/coding-standard) to permit the latest version. - [Release notes](https://github.com/doctrine/coding-standard/releases) - [Commits](https://github.com/doctrine/coding-standard/compare/13.0.0...14.0.0) --- updated-dependencies: - dependency-name: doctrine/coding-standard dependency-version: 14.0.0 dependency-type: direct:development ... Signed-off-by: dependabot[bot] --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index d4ad4ec422..a30e1ed2b0 100644 --- a/composer.json +++ b/composer.json @@ -28,7 +28,7 @@ }, "require-dev": { "beberlei/porpaginas": "^2.0", - "doctrine/coding-standard": "^13.0", + "doctrine/coding-standard": "^13.0 || ^14.0", "ecodev/graphql-upload": "^7.0", "laminas/laminas-diactoros": "^3.5", "php-coveralls/php-coveralls": "^2.7", From 072bf676a0cb318505ae2a4858dfd09bb58afdba Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 12 Jun 2026 04:42:51 +0000 Subject: [PATCH 2/5] Fix 2 CS issues in MutableInputObjectType: inline doc comment placement and format --- src/Types/MutableInputObjectType.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/Types/MutableInputObjectType.php b/src/Types/MutableInputObjectType.php index 5ee9c574ad..83b0c2e46f 100644 --- a/src/Types/MutableInputObjectType.php +++ b/src/Types/MutableInputObjectType.php @@ -96,12 +96,7 @@ public function getFields(): array $fieldDefinition = ['type' => $fieldDefinition]; } assert(is_string($name)); - // @codingStandardsIgnoreStart - /** - * @var InputObjectFieldConfig $config - */ - // @codingStandardsIgnoreEnd - + /** @var InputObjectFieldConfig $config */ $config = $fieldDefinition; $config['name'] = $name; $this->finalFields[$name] = new InputObjectField($config); From f492b9b723d735ac6e114a7f8ebf70ba5a8f1afb Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 12 Jun 2026 04:51:43 +0000 Subject: [PATCH 3/5] Fix CS issue: replace @var inline doc with direct variable use in MutableInputObjectType --- src/Types/MutableInputObjectType.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/Types/MutableInputObjectType.php b/src/Types/MutableInputObjectType.php index 83b0c2e46f..f4c09d98d0 100644 --- a/src/Types/MutableInputObjectType.php +++ b/src/Types/MutableInputObjectType.php @@ -19,7 +19,6 @@ * * @phpstan-import-type InputObjectConfig from InputObjectType * @phpstan-import-type ArgumentType from InputObjectField - * @phpstan-import-type InputObjectFieldConfig from InputObjectField */ class MutableInputObjectType extends InputObjectType implements MutableInputInterface { @@ -96,10 +95,8 @@ public function getFields(): array $fieldDefinition = ['type' => $fieldDefinition]; } assert(is_string($name)); - /** @var InputObjectFieldConfig $config */ - $config = $fieldDefinition; - $config['name'] = $name; - $this->finalFields[$name] = new InputObjectField($config); + $fieldDefinition['name'] = $name; + $this->finalFields[$name] = new InputObjectField($fieldDefinition); } } if (empty($this->finalFields)) { From 312ea63ea0a7497f5bb9488db33974fab185751d Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 12 Jun 2026 05:28:26 +0000 Subject: [PATCH 4/5] Fix PHPStan and PHPCS issues in MutableInputObjectType: use @phpstan-var to satisfy both tools --- src/Types/MutableInputObjectType.php | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/Types/MutableInputObjectType.php b/src/Types/MutableInputObjectType.php index f4c09d98d0..e5ec22fbce 100644 --- a/src/Types/MutableInputObjectType.php +++ b/src/Types/MutableInputObjectType.php @@ -18,7 +18,7 @@ * It can be later extended with the "Decorate" annotation * * @phpstan-import-type InputObjectConfig from InputObjectType - * @phpstan-import-type ArgumentType from InputObjectField + * @phpstan-import-type InputObjectFieldConfig from InputObjectField */ class MutableInputObjectType extends InputObjectType implements MutableInputInterface { @@ -89,14 +89,15 @@ public function getFields(): array $this->finalFields = parent::getFields(); foreach ($this->fieldsCallables as $fieldsCallable) { $fieldDefinitions = $fieldsCallable(); - /** @var (ArgumentType)[] $fieldDefinitions */ foreach ($fieldDefinitions as $name => $fieldDefinition) { + assert(is_string($name)); if ($fieldDefinition instanceof Type) { - $fieldDefinition = ['type' => $fieldDefinition]; + $this->finalFields[$name] = new InputObjectField(['name' => $name, 'type' => $fieldDefinition]); + } else { + /** @phpstan-var InputObjectFieldConfig $fieldDefinition */ + $fieldDefinition['name'] = $name; + $this->finalFields[$name] = new InputObjectField($fieldDefinition); } - assert(is_string($name)); - $fieldDefinition['name'] = $name; - $this->finalFields[$name] = new InputObjectField($fieldDefinition); } } if (empty($this->finalFields)) { From 9e945ebaa196cc2b4f98e27f576a40edf1234733 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 14 Jun 2026 05:52:33 +0000 Subject: [PATCH 5/5] Fix PHPStan type error: assert InputType before passing to InputObjectField --- src/Types/MutableInputObjectType.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Types/MutableInputObjectType.php b/src/Types/MutableInputObjectType.php index e5ec22fbce..8cd91c6b02 100644 --- a/src/Types/MutableInputObjectType.php +++ b/src/Types/MutableInputObjectType.php @@ -7,6 +7,7 @@ use GraphQL\Error\InvariantViolation; use GraphQL\Type\Definition\InputObjectField; use GraphQL\Type\Definition\InputObjectType; +use GraphQL\Type\Definition\InputType; use GraphQL\Type\Definition\Type; use RuntimeException; @@ -92,6 +93,7 @@ public function getFields(): array foreach ($fieldDefinitions as $name => $fieldDefinition) { assert(is_string($name)); if ($fieldDefinition instanceof Type) { + assert($fieldDefinition instanceof InputType); $this->finalFields[$name] = new InputObjectField(['name' => $name, 'type' => $fieldDefinition]); } else { /** @phpstan-var InputObjectFieldConfig $fieldDefinition */