Skip to content

Commit f2efe65

Browse files
committed
Fixed capitalization of readConcern/writeConcern option
1 parent c1b85e8 commit f2efe65

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

php_phongo.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ static bool process_read_concern(zval *option, bson_t *mongoc_opts TSRMLS_DC)
454454
const mongoc_read_concern_t *read_concern = phongo_read_concern_from_zval(option TSRMLS_CC);
455455

456456
if (!mongoc_read_concern_append((mongoc_read_concern_t*)read_concern, mongoc_opts)) {
457-
phongo_throw_exception(PHONGO_ERROR_INVALID_ARGUMENT TSRMLS_CC, "Error appending \"%s\" option", "ReadConcern");
457+
phongo_throw_exception(PHONGO_ERROR_INVALID_ARGUMENT TSRMLS_CC, "Error appending \"%s\" option", "readConcern");
458458
return false;
459459
}
460460
} else {
@@ -529,7 +529,7 @@ static bool process_write_concern(zval *option, bson_t *mongoc_opts, zval **zwri
529529
}
530530

531531
if (!mongoc_write_concern_append((mongoc_write_concern_t*) write_concern, mongoc_opts)) {
532-
phongo_throw_exception(PHONGO_ERROR_INVALID_ARGUMENT TSRMLS_CC, "Error appending \"%s\" option", "WriteConcern");
532+
phongo_throw_exception(PHONGO_ERROR_INVALID_ARGUMENT TSRMLS_CC, "Error appending \"%s\" option", "writeConcern");
533533
}
534534
} else {
535535
phongo_throw_exception(

0 commit comments

Comments
 (0)