Skip to content

Commit ee2f026

Browse files
committed
Allow Update write model to accept non-array argument in constructor
1 parent 2ce1410 commit ee2f026

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Write/Model/ReplaceOne.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class ReplaceOne implements WriteModelInterface
1414

1515
/**
1616
* @param $filter
17-
* @param $replacement
17+
* @param array|object $replacement
1818
* @param array $options
1919
*/
2020
public function __construct(array $filter, $replacement, array $options = [])

src/Write/Model/Update.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ class Update implements WriteModelInterface
2525

2626
/**
2727
* @param array $filter
28-
* @param array $update
28+
* @param array|object $update
2929
* @param array $options
3030
*/
31-
public function __construct(array $filter, array $update, array $options = [])
31+
public function __construct(array $filter, $update, array $options = [])
3232
{
3333
$this->filter = $filter;
3434
$this->update = $update;

0 commit comments

Comments
 (0)