Skip to content

Commit

Permalink
Merge pull request #10002 from nextcloud/docs/noid/phpdoc-putContent-…
Browse files Browse the repository at this point in the history
…resource

Add resource type phpDoc for putContent methods
  • Loading branch information
MorrisJobke authored Jun 26, 2018
2 parents beea287 + 73cf71a commit 43f7ea5
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/private/Files/Node/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public function getContent() {
}

/**
* @param string $data
* @param string|resource $data
* @throws \OCP\Files\NotPermittedException
* @throws \OCP\Files\GenericFileException
*/
Expand Down
2 changes: 1 addition & 1 deletion lib/private/Files/SimpleFS/SimpleFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public function getContent() {
/**
* Overwrite the file
*
* @param string $data
* @param string|resource $data
* @throws NotPermittedException
*/
public function putContent($data) {
Expand Down
2 changes: 1 addition & 1 deletion lib/private/Files/View.php
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ protected function emit_file_hooks_post($exists, $path) {

/**
* @param string $path
* @param mixed $data
* @param string|resource $data
* @return bool|mixed
* @throws \Exception
*/
Expand Down
2 changes: 1 addition & 1 deletion lib/public/Files/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function getContent();
/**
* Write to the file from string data
*
* @param string $data
* @param string|resource $data
* @throws \OCP\Files\NotPermittedException
* @throws \OCP\Files\GenericFileException
* @since 6.0.0
Expand Down
2 changes: 1 addition & 1 deletion lib/public/Files/SimpleFS/ISimpleFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public function getContent();
/**
* Overwrite the file
*
* @param string $data
* @param string|resource $data
* @throws NotPermittedException
* @since 11.0.0
*/
Expand Down

0 comments on commit 43f7ea5

Please sign in to comment.