We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 38bb248 commit 28ab03dCopy full SHA for 28ab03d
1 file changed
src/Mappers/Root/UndefinedTypeMapper.php
@@ -21,7 +21,7 @@
21
use function array_map;
22
use function array_values;
23
use function iterator_to_array;
24
-use function mb_ltrim;
+use function ltrim;
25
26
/**
27
* A root type mapper for {@see Undefined} that maps replaces those with `null` as if Undefined wasn't part of the type at all.
@@ -55,7 +55,7 @@ public function mapNameToType(string $typeName): NamedType&GraphQLType
55
*/
56
public static function replaceUndefinedWith(Type $type, Type $replaceWith = new Null_()): Type
57
{
58
- if ($type instanceof Object_ && mb_ltrim((string) $type->getFqsen(), '\\') === Undefined::class) {
+ if ($type instanceof Object_ && ltrim((string) $type->getFqsen(), '\\') === Undefined::class) {
59
return $replaceWith;
60
}
61
0 commit comments