File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
src/Config/Parser/MetadataParser
Config/Parser/fixtures/annotations/Input Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff 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 ();
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments