mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-03 17:24:07 +02:00
psalm fixes
This commit is contained in:
parent
ba26d98b46
commit
cce108848c
5 changed files with 18 additions and 9 deletions
|
|
@ -267,14 +267,14 @@ class NativeShare extends AbstractShare {
|
|||
* Open a writeable stream to a remote file
|
||||
* Note: This method will truncate the file to 0bytes first
|
||||
*
|
||||
* @param string $source
|
||||
* @param string $target
|
||||
* @return resource a writeable stream
|
||||
*
|
||||
* @throws NotFoundException
|
||||
* @throws InvalidTypeException
|
||||
*/
|
||||
public function write(string $source) {
|
||||
$url = $this->buildUrl($source);
|
||||
public function write(string $target) {
|
||||
$url = $this->buildUrl($target);
|
||||
$handle = $this->getState()->create($url);
|
||||
return NativeWriteStream::wrap($this->getState(), $handle, 'w', $url);
|
||||
}
|
||||
|
|
@ -282,14 +282,14 @@ class NativeShare extends AbstractShare {
|
|||
/**
|
||||
* Open a writeable stream and set the cursor to the end of the stream
|
||||
*
|
||||
* @param string $source
|
||||
* @param string $target
|
||||
* @return resource a writeable stream
|
||||
*
|
||||
* @throws NotFoundException
|
||||
* @throws InvalidTypeException
|
||||
*/
|
||||
public function append(string $source) {
|
||||
$url = $this->buildUrl($source);
|
||||
public function append(string $target) {
|
||||
$url = $this->buildUrl($target);
|
||||
$handle = $this->getState()->open($url, "a+");
|
||||
return NativeWriteStream::wrap($this->getState(), $handle, "a", $url);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue