[Functions] Complete Swift 6 support (#14838)

This commit is contained in:
Nick Cooke authored and GitHub committed 2025-05-13 11:07:39 -04:00
1 parent 122f2d963f
commit dbecea06dc
7 files changed
+87 -33

No files matched your search

@@ -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 {