Skip to content

Commit

Permalink
#4: add support for "illuminate/http" 11.0
Browse files Browse the repository at this point in the history
  • Loading branch information
klimov-paul committed Mar 25, 2024
1 parent 254c31b commit 93024c0
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
-------------------

Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
4 changes: 2 additions & 2 deletions src/MultipartFormDataParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 93024c0

Please sign in to comment.