Skip to content

Commit

Permalink
Switched to writeStream for v3
Browse files Browse the repository at this point in the history
  • Loading branch information
Sammyjo20 committed Apr 7, 2022
1 parent d6978af commit eb2c92b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
13 changes: 7 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,16 @@
"php": "^8.0",
"ext-json": "*",
"ext-zip": "*",
"illuminate/console": "^8.0 || ^9.0",
"illuminate/filesystem": "^8.0 || ^9.0",
"illuminate/support": "^8.0 || ^9.0",
"symfony/finder": "^5.0 || ^6.0",
"symfony/process": "^5.0 || ^6.0"
"illuminate/console": "^9.0",
"illuminate/filesystem": "^9.0",
"illuminate/support": "^9.0",
"symfony/finder": "^6.0",
"symfony/process": "^6.0",
"league/flysystem": "^3.0"
},
"require-dev": {
"phpunit/phpunit": "^9.3",
"orchestra/testbench": "^6.0",
"orchestra/testbench": "^7.0",
"friendsofphp/php-cs-fixer": "^3.1.0",
"spatie/ray": "^1.33"
},
Expand Down
2 changes: 1 addition & 1 deletion src/Helpers/Cloud.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public function uploadFile(string $path, string $name): void
$stream = fopen($path, 'rb');

// Use the stream to write the bundle to the Filesystem.
$this->cloudFilesystem->putStream($upload_path, $stream);
$this->cloudFilesystem->writeStream($upload_path, $stream);

// Close the Stream pointer because it's good practice.
if (is_resource($stream)) {
Expand Down
Binary file modified tests/Helpers/Support/Zip/Destination/WithSubFolder.zip
Binary file not shown.

0 comments on commit eb2c92b

Please sign in to comment.