From 93024c07bfadd9949521dd98ad5432a5ee89c3c5 Mon Sep 17 00:00:00 2001 From: Paul Klimov Date: Mon, 25 Mar 2024 12:33:40 +0200 Subject: [PATCH] #4: add support for "illuminate/http" 11.0 --- .github/workflows/build.yml | 2 +- CHANGELOG.md | 6 ++++++ composer.json | 4 ++-- src/MultipartFormDataParser.php | 4 ++-- 4 files changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1be6328..98859e7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -10,7 +10,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest] - php: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2'] + php: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3'] steps: - name: Checkout diff --git a/CHANGELOG.md b/CHANGELOG.md index 0f1fb01..ce49c4e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,12 @@ Multipart Request Parser Middleware Change Log ============================================== +1.1.6 Under Development +----------------------- + +- Enh #4: Added support for "illuminate/http" 11.0 (klimov-paul) + + 1.1.5, May 18, 2023 ------------------- diff --git a/composer.json b/composer.json index d97e053..4d2df4d 100644 --- a/composer.json +++ b/composer.json @@ -15,10 +15,10 @@ } ], "require": { - "illuminate/http": "^6.0 || ^7.0 || ^8.0 || ^9.0 || ^10.0" + "illuminate/http": "^6.0 || ^7.0 || ^8.0 || ^9.0 || ^10.0 || ^11.0" }, "require-dev": { - "phpunit/phpunit": "^7.5 || ^8.0 || ^9.3 || ^10.0.7" + "phpunit/phpunit": "^7.5 || ^8.0 || ^9.3 || ^10.5" }, "autoload": { "psr-4": { diff --git a/src/MultipartFormDataParser.php b/src/MultipartFormDataParser.php index d53082f..4d482c1 100644 --- a/src/MultipartFormDataParser.php +++ b/src/MultipartFormDataParser.php @@ -12,7 +12,7 @@ use Illuminate\Http\UploadedFile; use Illuminate\Support\Arr; use Symfony\Component\HttpFoundation\FileBag; -use Symfony\Component\HttpFoundation\ParameterBag; +use Symfony\Component\HttpFoundation\InputBag; /** * MultipartFormDataParser is a middleware for parsing 'multipart/form-data' HTTP requests. @@ -244,7 +244,7 @@ protected function newRequest(Request $originalRequest, array $bodyParams, array { $request = clone $originalRequest; - $request->request = new ParameterBag($bodyParams); + $request->request = new InputBag($bodyParams); $request->files = new FileBag($uploadedFiles); return $request;