Skip to content

Commit 65b19c4

Browse files
committed
Use correct boolean type in updateMany() example code
1 parent 4500b0b commit 65b19c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/reference/method/MongoDBCollection-updateMany.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ The following example updates all of the documents with the ``borough`` of
6161

6262
$updateResult = $collection->updateMany(
6363
[ 'borough' => 'Queens' ],
64-
[ '$set' => [ 'active' => 'True' ]]
64+
[ '$set' => [ 'active' => true ]]
6565
);
6666

6767
printf("Matched %d document(s)\n", $updateResult->getMatchedCount());

0 commit comments

Comments
 (0)