Skip to content

Commit

Permalink
fix: Php8.1 write issues
Browse files Browse the repository at this point in the history
  • Loading branch information
dogukanoksuz committed Oct 19, 2022
1 parent 76995aa commit b05de4f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "icewind/smb",
"name": "limanmys/php-smb",
"description": "php wrapper for smbclient and libsmbclient-php",
"license": "MIT",
"authors": [
Expand All @@ -9,7 +9,7 @@
}
],
"require": {
"php": ">=7.2",
"php": ">=8.1",
"icewind/streams": ">=0.7.3"
},
"require-dev": {
Expand Down
2 changes: 1 addition & 1 deletion src/Native/NativeState.php
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ public function read($file, int $bytes, string $path): string {
*/
public function write($file, string $data, string $path, ?int $length = null): int {
/** @var int $result */
$result = @smbclient_write($this->state, $file, $data, $length);
$result = @smbclient_write($this->state, $file, $data);

$this->testResult($result, $path);
return $result;
Expand Down

0 comments on commit b05de4f

Please sign in to comment.