Skip to content

Commit

Permalink
php unit fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yrong authored and phil-davis committed Nov 17, 2021
1 parent a4432fa commit 0e2b4e3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/Sabre/DAV/Mock/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public function setName($name)
*
* @return string|null
*/
public function put($data)
public function put($data, $params = null)
{
if (is_resource($data)) {
$data = stream_get_contents($data);
Expand Down
2 changes: 1 addition & 1 deletion tests/Sabre/DAV/Mock/StreamingFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class StreamingFile extends File
*
* @return string|null
*/
public function put($data)
public function put($data, $params = null)
{
if (is_string($data)) {
$stream = fopen('php://memory', 'r+');
Expand Down
2 changes: 1 addition & 1 deletion tests/Sabre/DAV/PartialUpdate/FileMock.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class FileMock implements IPatchSupport
{
protected $data = '';

public function put($str)
public function put($str, $params = null)
{
if (is_resource($str)) {
$str = stream_get_contents($str);
Expand Down

0 comments on commit 0e2b4e3

Please sign in to comment.