Skip to content

Commit 4a78526

Browse files
committed
CS fix
1 parent 58f5c91 commit 4a78526

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/Config/Parser/MetadataParser/MetadataParser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,7 @@ private static function getGraphQLInputFieldsFromMetadatas(ReflectionClass $refl
685685
$fieldConfiguration['type'] = $fieldType;
686686
}
687687

688-
if($fieldMetadata instanceof InputField && $fieldMetadata->defaultValue !== null) {
688+
if ($fieldMetadata instanceof InputField && null !== $fieldMetadata->defaultValue) {
689689
$fieldConfiguration['defaultValue'] = $fieldMetadata->defaultValue;
690690
} elseif ($reflector->hasDefaultValue()) {
691691
$fieldConfiguration['defaultValue'] = $reflector->getDefaultValue();

tests/Config/Parser/fixtures/annotations/Input/MateriaInput.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ final class MateriaInput
1616
* @GQL\InputField(type="String!")
1717
*/
1818
#[GQL\InputField(type: 'String!')]
19-
public string $name = "default name";
19+
public string $name = 'default name';
2020

2121
/**
2222
* @GQL\InputField(type="Int!", defaultValue=100)
@@ -28,7 +28,7 @@ final class MateriaInput
2828
* @GQL\Field
2929
*/
3030
#[GQL\Field]
31-
public string $description = "A description by default";
31+
public string $description = 'A description by default';
3232

3333
/**
3434
* @GQL\Field

tests/Transformer/InputType4.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ final class InputType4
99
/**
1010
* @var mixed
1111
*/
12-
public $field1 = "default_value_field1";
12+
public $field1 = 'default_value_field1';
1313

1414
/**
1515
* @var mixed
1616
*/
17-
public $field2 = ["v1", "v2"];
17+
public $field2 = ['v1', 'v2'];
1818

1919
/**
2020
* @var mixed

0 commit comments

Comments
 (0)