diff --git a/Firestore/tests/Unit/ConformanceTest.php b/Firestore/tests/Unit/ConformanceTest.php index 2f91202debc9..d29d5d86d844 100644 --- a/Firestore/tests/Unit/ConformanceTest.php +++ b/Firestore/tests/Unit/ConformanceTest.php @@ -190,7 +190,8 @@ public function testUpdatePaths($test) $this->executeAndHandleError($test, function ($test) { $fields = []; - foreach ($test['fieldPaths'] as $key => $val) { + // "update-paths: no paths" has no fieldPaths and expects update([]) to error. + foreach ($test['fieldPaths'] ?? [] as $key => $val) { $fields[] = [ 'path' => new FieldPath($val['field']), 'value' => $this->injectSentinel(