From 13c2e342648b9e26dd68a61d92b03179b70bde6d Mon Sep 17 00:00:00 2001 From: recca0120 Date: Thu, 11 Apr 2024 15:55:42 +0800 Subject: [PATCH] laravel 11 --- composer.json | 8 ++++---- tests/Drivers/DropzoneTest.php | 5 +++++ tests/Drivers/FileAPITest.php | 7 ++++++- tests/Drivers/FilePondTest.php | 5 +++++ tests/Drivers/FineUploaderTest.php | 5 +++++ tests/Drivers/PluploadTest.php | 5 +++++ 6 files changed, 30 insertions(+), 5 deletions(-) diff --git a/composer.json b/composer.json index 16784c2..8ca6a7e 100644 --- a/composer.json +++ b/composer.json @@ -21,13 +21,13 @@ ], "require": { "php": "^7.3|^8.0", - "illuminate/filesystem": "^8.0|^9.0|^10.0", - "illuminate/http": "^8.0|^9.0|^10.0" + "illuminate/filesystem": "^8.0|^9.0|^10.0|^11.0", + "illuminate/http": "^8.0|^9.0|^10.0|^11.0" }, "require-dev": { "roave/security-advisories": "dev-latest", - "illuminate/config": "^8.0|^9.0|^10.0", - "illuminate/container": "^8.0|^9.0|^10.0", + "illuminate/config": "^8.0|^9.0|^10.0|^11.0", + "illuminate/container": "^8.0|^9.0|^10.0|^11.0", "mikey179/vfsstream": "^1.6", "mockery/mockery": "^1.0", "nesbot/carbon": "^2.0.0", diff --git a/tests/Drivers/DropzoneTest.php b/tests/Drivers/DropzoneTest.php index 6d61783..5c33e3d 100644 --- a/tests/Drivers/DropzoneTest.php +++ b/tests/Drivers/DropzoneTest.php @@ -12,6 +12,11 @@ class DropzoneTest extends TestCase { + /** + * @var Dropzone + */ + private $api; + protected function setUp(): void { parent::setUp(); diff --git a/tests/Drivers/FileAPITest.php b/tests/Drivers/FileAPITest.php index 0e45c0d..070ecb0 100644 --- a/tests/Drivers/FileAPITest.php +++ b/tests/Drivers/FileAPITest.php @@ -12,6 +12,11 @@ class FileAPITest extends TestCase { + /** + * @var FileAPI + */ + private $api; + protected function setUp(): void { parent::setUp(); @@ -43,7 +48,7 @@ public function testReceiveChunkedFile(): void $this->request->headers->replace([ 'content-disposition' => 'attachment; filename="'.$this->uploadedFile->getClientOriginalName().'"', - 'content-range' => "bytes {$start}-{$end}/${total}", + 'content-range' => "bytes {$start}-{$end}/{$total}", 'content-type' => $this->uploadedFile->getMimeType(), 'content-length' => $chunkSize, ]); diff --git a/tests/Drivers/FilePondTest.php b/tests/Drivers/FilePondTest.php index 2433221..7f366ca 100644 --- a/tests/Drivers/FilePondTest.php +++ b/tests/Drivers/FilePondTest.php @@ -11,6 +11,11 @@ class FilePondTest extends TestCase { + /** + * @var FilePond + */ + private $api; + protected function setUp(): void { parent::setUp(); diff --git a/tests/Drivers/FineUploaderTest.php b/tests/Drivers/FineUploaderTest.php index e646570..40158c9 100644 --- a/tests/Drivers/FineUploaderTest.php +++ b/tests/Drivers/FineUploaderTest.php @@ -12,6 +12,11 @@ class FineUploaderTest extends TestCase { + /** + * @var FineUploader + */ + private $api; + protected function setUp(): void { parent::setUp(); diff --git a/tests/Drivers/PluploadTest.php b/tests/Drivers/PluploadTest.php index 2c19c75..8bec2c1 100644 --- a/tests/Drivers/PluploadTest.php +++ b/tests/Drivers/PluploadTest.php @@ -12,6 +12,11 @@ class PluploadTest extends TestCase { + /** + * @var Plupload + */ + private $api; + protected function setUp(): void { parent::setUp();