Skip to content

Commit c4df6e5

Browse files
committed
v15.15.0
1 parent f2748f1 commit c4df6e5

File tree

4 files changed

+9
-7
lines changed

4 files changed

+9
-7
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ You can find and compare releases at the [GitHub release page](https://github.co
99

1010
## Unreleased
1111

12+
## v15.15.0
13+
14+
### Added
15+
16+
- Add field config decorator when building schema from SDL https://github.com/webonyx/graphql-php/pull/1590
17+
1218
## v15.14.3
1319

1420
### Fixed

src/Utils/ASTDefinitionBuilder.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ private function internalBuildType(string $typeName, ?Node $typeNode = null): Ty
266266
if (isset($this->typeDefinitionsMap[$typeName])) {
267267
$type = $this->makeSchemaDef($this->typeDefinitionsMap[$typeName]);
268268

269-
if (isset($this->typeConfigDecorator)) {
269+
if ($this->typeConfigDecorator !== null) {
270270
try {
271271
$config = ($this->typeConfigDecorator)(
272272
$type->config,

tests/Utils/BuildSchemaTest.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,7 @@
4242
use GraphQL\Utils\SchemaPrinter;
4343
use GraphQL\Validator\Rules\KnownDirectives;
4444

45-
/**
46-
* @phpstan-import-type UnnamedFieldDefinitionConfig from FieldDefinition
47-
*/
45+
/** @phpstan-import-type UnnamedFieldDefinitionConfig from FieldDefinition */
4846
final class BuildSchemaTest extends TestCaseBase
4947
{
5048
use ArraySubsetAsserts;

tests/Utils/SchemaExtenderTest.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,7 @@
4040
use GraphQL\Utils\SchemaPrinter;
4141
use GraphQL\Validator\Rules\KnownDirectives;
4242

43-
/**
44-
* @phpstan-import-type UnnamedFieldDefinitionConfig from FieldDefinition
45-
*/
43+
/** @phpstan-import-type UnnamedFieldDefinitionConfig from FieldDefinition */
4644
final class SchemaExtenderTest extends TestCaseBase
4745
{
4846
/** @param NamedType|Schema $obj */

0 commit comments

Comments
 (0)