Skip to content

Commit

Permalink
Correct return type in docblock for write()
Browse files Browse the repository at this point in the history
Fixes #206
  • Loading branch information
allejo committed Nov 9, 2019
1 parent 231c737 commit 9260406
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/main/php/org/bovigo/vfs/content/FileContent.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function eof();
* writes an amount of data
*
* @param string $data
* @return amount of written bytes
* @return int amount of written bytes
*/
public function write($data);

Expand Down
4 changes: 2 additions & 2 deletions src/main/php/org/bovigo/vfs/content/SeekableFileContent.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public function seek($offset, $whence)
default:
return false;
}

if ($newOffset<0) {
return false;
}
Expand All @@ -91,7 +91,7 @@ public function eof()
* writes an amount of data
*
* @param string $data
* @return amount of written bytes
* @return int amount of written bytes
*/
public function write($data)
{
Expand Down
2 changes: 1 addition & 1 deletion src/main/php/org/bovigo/vfs/vfsStreamFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ public function readUntilEnd()
* Using this method changes the time when the file was last modified.
*
* @param string $data
* @return amount of written bytes
* @return int amount of written bytes
*/
public function write($data)
{
Expand Down

0 comments on commit 9260406

Please sign in to comment.