mirror of
https://github.com/firebase/firebase-ios-sdk
synced 2026-11-11 22:55:59 +05:45
[Functions] Complete Swift 6 support (#14838)
This commit is contained in:
1 parent
122f2d963f
commit
dbecea06dc
7 files changed
+87
-33
No files matched your search
+1
-1
@@ -286,7 +286,7 @@ public class FirebaseDataEncoder {
|
||||
/// - returns: A new `Data` value containing the encoded JSON data.
|
||||
/// - throws: `EncodingError.invalidValue` if a non-conforming floating-point value is encountered during encoding, and the encoding strategy is `.throw`.
|
||||
/// - throws: An error if any value throws an error during encoding.
|
||||
open func encode<T : Encodable>(_ value: T) throws -> Any {
|
||||
open func encode<T : Encodable>(_ value: T) throws -> sending Any {
|
||||
let encoder = __JSONEncoder(options: self.options)
|
||||
|
||||
guard let topLevel = try encoder.box_(value) else {
|
||||
|
||||
Reference in new issue
Block a user