Skip to content

Commit

Permalink
v15.15.0
Browse files Browse the repository at this point in the history
  • Loading branch information
spawnia committed Oct 23, 2024
1 parent f2748f1 commit c4df6e5
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ You can find and compare releases at the [GitHub release page](https://github.co

## Unreleased

## v15.15.0

### Added

- Add field config decorator when building schema from SDL https://github.com/webonyx/graphql-php/pull/1590

## v15.14.3

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion src/Utils/ASTDefinitionBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ private function internalBuildType(string $typeName, ?Node $typeNode = null): Ty
if (isset($this->typeDefinitionsMap[$typeName])) {
$type = $this->makeSchemaDef($this->typeDefinitionsMap[$typeName]);

if (isset($this->typeConfigDecorator)) {
if ($this->typeConfigDecorator !== null) {
try {
$config = ($this->typeConfigDecorator)(
$type->config,
Expand Down
4 changes: 1 addition & 3 deletions tests/Utils/BuildSchemaTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,7 @@
use GraphQL\Utils\SchemaPrinter;
use GraphQL\Validator\Rules\KnownDirectives;

/**
* @phpstan-import-type UnnamedFieldDefinitionConfig from FieldDefinition
*/
/** @phpstan-import-type UnnamedFieldDefinitionConfig from FieldDefinition */
final class BuildSchemaTest extends TestCaseBase
{
use ArraySubsetAsserts;
Expand Down
4 changes: 1 addition & 3 deletions tests/Utils/SchemaExtenderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,7 @@
use GraphQL\Utils\SchemaPrinter;
use GraphQL\Validator\Rules\KnownDirectives;

/**
* @phpstan-import-type UnnamedFieldDefinitionConfig from FieldDefinition
*/
/** @phpstan-import-type UnnamedFieldDefinitionConfig from FieldDefinition */
final class SchemaExtenderTest extends TestCaseBase
{
/** @param NamedType|Schema $obj */
Expand Down

0 comments on commit c4df6e5

Please sign in to comment.