Skip to content

Commit 28ab03d

Browse files
committed
Fix failing tests
1 parent 38bb248 commit 28ab03d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Mappers/Root/UndefinedTypeMapper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
use function array_map;
2222
use function array_values;
2323
use function iterator_to_array;
24-
use function mb_ltrim;
24+
use function ltrim;
2525

2626
/**
2727
* 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
5555
*/
5656
public static function replaceUndefinedWith(Type $type, Type $replaceWith = new Null_()): Type
5757
{
58-
if ($type instanceof Object_ && mb_ltrim((string) $type->getFqsen(), '\\') === Undefined::class) {
58+
if ($type instanceof Object_ && ltrim((string) $type->getFqsen(), '\\') === Undefined::class) {
5959
return $replaceWith;
6060
}
6161

0 commit comments

Comments
 (0)