Skip to content

Commit b2d5959

Browse files
committed
fix zipstream
1 parent 3f25acb commit b2d5959

File tree

3 files changed

+12
-7
lines changed

3 files changed

+12
-7
lines changed

.github/workflows/tests.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
strategy:
1515
fail-fast: false
1616
matrix:
17-
php: [ 8.0, 8.1, 8.2, 8.3 ]
17+
php: [ '8.0', '8.1', '8.2', '8.3' ]
1818
laravel: [ '8.*', '9.*', '10.*', '11.*' ]
1919
guzzle: [ 6.*, 7.* ]
2020
dependency-version: [ prefer-lowest, prefer-stable ]
@@ -75,7 +75,7 @@ jobs:
7575
- name: Install dependencies
7676
run: |
7777
composer self-update ${{ matrix.composer-version }}
78-
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "guzzlehttp/guzzle:${{ matrix.guzzle }}" --no-interaction --no-update
78+
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "guzzlehttp/guzzle:${{ matrix.guzzle }}" --no-interaction --no-update --dev
7979
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
8080
8181
- name: Execute tests

composer.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@
1010
}
1111
],
1212
"require": {
13-
"php": "^8.0",
13+
"php": "^8.1",
1414
"illuminate/filesystem": "^8|^9|^10|^11",
1515
"illuminate/console": "^8|^9|^10|^11",
16-
"maennchen/zipstream-php": "^2.1|^3.1",
16+
"illuminate/support": "^8|^9|^10|^11",
17+
"maennchen/zipstream-php": "^3.1",
1718
"guzzlehttp/guzzle": "^6.3|^7.2",
18-
"aws/aws-sdk-php": "^3.216.1",
19-
"illuminate/support": "^10.0|^11.0"
19+
"aws/aws-sdk-php": "^3.216.1"
2020
},
2121
"require-dev": {
2222
"orchestra/testbench": "^5|^6|^7|^8|^9",

src/Package.php

+6-1
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,12 @@ public function upload()
336336
// a writeable local disk!
337337
$stream = fopen($path, 'w');
338338

339-
$zip = new ZipStream(enableZip64: false, outputStream: $stream, outputName: null);
339+
$zip = new ZipStream(
340+
outputStream: $stream,
341+
enableZip64: false,
342+
sendHttpHeaders: false,
343+
outputName: null
344+
);
340345

341346
// Set the time to now so that hashes are
342347
// stable during testing.

0 commit comments

Comments
 (0)