Skip to content

Commit 05a51b2

Browse files
authored
fix: typo in snippet (GoogleCloudPlatform#1121)
1 parent 0e950c3 commit 05a51b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

firestore/src/update_doc_increment.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ function update_doc_increment($projectId)
4343

4444
// Atomically increment the population of the city by 50.
4545
$cityRef->update([
46-
['path' => 'regions', 'value' => FieldValue::incremet(50)]
46+
['path' => 'regions', 'value' => FieldValue::increment(50)]
4747
]);
4848
# [END fs_update_doc_increment]
4949
printf('Updated the population of the DC document in the cities collection.' . PHP_EOL);

0 commit comments

Comments
 (0)