Skip to content

Commit

Permalink
Revert "Add PHPdoc for params parameter"
Browse files Browse the repository at this point in the history
This reverts commit 2df6a6c.
  • Loading branch information
phil-davis committed Dec 9, 2021
1 parent 5d73987 commit 32fe7e3
Show file tree
Hide file tree
Showing 11 changed files with 12 additions and 22 deletions.
1 change: 0 additions & 1 deletion lib/CalDAV/CalendarObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ public function get()
* Updates the ICalendar-formatted object.
*
* @param string|resource $calendarData
* @param object|null $params
*
* @return string
*/
Expand Down
1 change: 0 additions & 1 deletion lib/CalDAV/Schedule/SchedulingObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ public function get()
* Updates the ICalendar-formatted object.
*
* @param string|resource $calendarData
* @param object|null $params
*
* @return string
*/
Expand Down
3 changes: 1 addition & 2 deletions lib/CardDAV/Card.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,7 @@ public function get()
/**
* Updates the VCard-formatted object.
*
* @param string $cardData
* @param object|null $params
* @param string $cardData
*
* @return string|null
*/
Expand Down
3 changes: 1 addition & 2 deletions lib/DAV/FS/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ class File extends Node implements DAV\IFile
/**
* Updates the data.
*
* @param resource $data
* @param object|null $params
* @param resource $data
*/
public function put($data, $params = null)
{
Expand Down
1 change: 0 additions & 1 deletion lib/DAV/FSExt/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ class File extends Node implements DAV\PartialUpdate\IPatchSupport
* Data is a readable stream resource.
*
* @param resource|string $data
* @param object|null $params
*
* @return string
*/
Expand Down
1 change: 0 additions & 1 deletion lib/DAV/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ abstract class File extends Node implements IFile
* return an ETag, and just return null.
*
* @param string|resource $data
* @param object|null $params
*
* @return string|null
*/
Expand Down
1 change: 0 additions & 1 deletion lib/DAV/IFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ interface IFile extends INode
* return an ETag, and just return null.
*
* @param resource|string $data
* @param object|null $params
*
* @return string|null
*/
Expand Down
9 changes: 4 additions & 5 deletions lib/DAV/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -1114,14 +1114,13 @@ public function createFile($uri, $data, &$etag = null)
*
* This method will return true if the file was actually updated
*
* @param string $uri
* @param resource $data
* @param string $etag
* @param object|null $params
* @param string $uri
* @param resource $data
* @param string $etag
*
* @return bool
*/
public function updateFile($uri, $data, &$etag = null, $params = null)
public function updateFile($uri, $data, &$etag = null, $params)
{
$node = $this->tree->getNodeForPath($uri);

Expand Down
3 changes: 1 addition & 2 deletions tests/Sabre/DAV/Mock/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,7 @@ public function setName($name)
* different object on a subsequent GET you are strongly recommended to not
* return an ETag, and just return null.
*
* @param resource $data
* @param object|null $params
* @param resource $data
*
* @return string|null
*/
Expand Down
3 changes: 1 addition & 2 deletions tests/Sabre/DAV/Mock/StreamingFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ class StreamingFile extends File
* different object on a subsequent GET you are strongly recommended to not
* return an ETag, and just return null.
*
* @param resource $data
* @param object|null $params
* @param resource $data
*
* @return string|null
*/
Expand Down
8 changes: 4 additions & 4 deletions tests/Sabre/DAV/PartialUpdate/FileMock.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ class FileMock implements IPatchSupport
{
protected $data = '';

public function put($data, $params = null)
public function put($str, $params = null)
{
if (is_resource($data)) {
$data = stream_get_contents($data);
if (is_resource($str)) {
$str = stream_get_contents($str);
}
$this->data = $data;
$this->data = $str;
}

/**
Expand Down

0 comments on commit 32fe7e3

Please sign in to comment.