Skip to content

Commit aff2a99

Browse files
committed
Replace _cfTypeID with CFGetTypeID because of accessibility change in Swift Foundation
1 parent eb97945 commit aff2a99

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Sources/GraphQL/Map/AnyCoder.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2055,7 +2055,7 @@ extension _AnyDecoder {
20552055
}
20562056

20572057
// TODO: Add a flag to coerce non-boolean numbers into Bools?
2058-
guard number._cfTypeID == CFBooleanGetTypeID() else {
2058+
guard CFGetTypeID(number) == CFBooleanGetTypeID() else {
20592059
throw DecodingError._typeMismatch(at: self.codingPath, expectation: type, reality: value)
20602060
}
20612061

Sources/GraphQL/Map/MapCoder.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2058,7 +2058,7 @@ extension _MapDecoder {
20582058
}
20592059

20602060
// TODO: Add a flag to coerce non-boolean numbers into Bools?
2061-
guard number._cfTypeID == CFBooleanGetTypeID() else {
2061+
guard CFGetTypeID(number) == CFBooleanGetTypeID() else {
20622062
throw DecodingError._typeMismatch(at: self.codingPath, expectation: type, reality: value)
20632063
}
20642064

0 commit comments

Comments
 (0)