Skip to content

Commit

Permalink
Revert "php unit fix"
Browse files Browse the repository at this point in the history
This reverts commit 0e2b4e3.
  • Loading branch information
phil-davis committed Dec 9, 2021
1 parent 32fe7e3 commit 9b01854
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, $params = null)
public function put($data)
{
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, $params = null)
public function put($data)
{
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, $params = null)
public function put($str)
{
if (is_resource($str)) {
$str = stream_get_contents($str);
Expand Down

0 comments on commit 9b01854

Please sign in to comment.