You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Changing the default name given to enum types in the GraphQL schema
Warning! This is a BC break.
Given the fact that enum types where almost non functionals in v4.0.1,
and given the fact it is unlikely they have been used until now, I'm exceptionnaly introducing
this BC break to introduce Enum types that are behaving in a more consistent way.
Enum type name is now the short class name and a @EnumType annotations allows overriding the name if needed.
Closes#232.
Copy file name to clipboardExpand all lines: phpstan.neon
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -29,9 +29,13 @@ parameters:
29
29
-
30
30
message:'#Method TheCodingMachine\\GraphQLite\\AnnotationReader::getMethodAnnotations\(\) should return array<int, T of object> but returns array<object>.#'
31
31
path:src/AnnotationReader.php
32
+
-
33
+
message:'#Parameter \#1 \$enumClass of method TheCodingMachine\\GraphQLite\\Mappers\\Root\\MyCLabsEnumTypeMapper::getTypeName\(\) expects class-string<MyCLabs\\Enum\\Enum>, class-string<object> given.#'
34
+
path:src/Mappers/Root/MyCLabsEnumTypeMapper.php
32
35
- '#Call to an undefined method GraphQL\\Error\\ClientAware::getMessage()#'
33
36
# Needed because of a bug in PHP-CS
34
37
- '#PHPDoc tag @param for parameter \$args with type mixed is not subtype of native type array<int, mixed>.#'
0 commit comments