Skip to content

Commit a7c522d

Browse files
committed
Support Symfony 8
1 parent 540f1d7 commit a7c522d

37 files changed

+373
-668
lines changed

.gitattributes

100644100755
File mode changed.

.github/workflows/ci.yml

100644100755
Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ jobs:
1717
fail-fast: false
1818
matrix:
1919
php-version:
20-
- "8.1"
21-
- "8.2"
20+
- "8.4"
2221
dependencies:
2322
- "highest"
2423
stability:
@@ -27,11 +26,11 @@ jobs:
2726
# Tests the lowest set of dependencies
2827
- dependencies: "lowest"
2928
stability: "stable"
30-
php-version: "8.1"
29+
php-version: "8.4"
3130
# Tests the highest set of dependencies
3231
- dependencies: "highest"
3332
stability: "dev"
34-
php-version: "8.2"
33+
php-version: "8.4"
3534

3635
steps:
3736
- name: "Checkout"

.gitignore

100644100755
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@
66
.php-cs-fixer.cache
77
.phpunit.result.cache
88
coverage.xml
9-
.result
9+
.result
10+
/flake.lock

.php-cs-fixer.dist.php

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
use PhpCsFixer\Config;
6+
use PhpCsFixer\Finder;
7+
8+
return (new Config())
9+
->setRiskyAllowed(false)
10+
->setRules([
11+
'@auto' => true,
12+
'@PhpCsFixer' => true,
13+
'php_unit_test_class_requires_covers' => false,
14+
])
15+
// 💡 by default, Fixer looks for `*.php` files excluding `./vendor/` - here, you can groom this config
16+
->setFinder(
17+
(new Finder())
18+
// 💡 root folder to check
19+
->in(__DIR__)
20+
// 💡 additional files, eg bin entry file
21+
// ->append([__DIR__.'/bin-entry-file'])
22+
// 💡 folders to exclude, if any
23+
// ->exclude([/* ... */])
24+
// 💡 path patterns to exclude, if any
25+
// ->notPath([/* ... */])
26+
// 💡 extra configs
27+
// ->ignoreDotFiles(false) // true by default in v3, false in v4 or future mode
28+
// ->ignoreVCS(true) // true by default
29+
)
30+
;

CHANGELOG.md

100644100755
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
## 2.0.0
4+
- Support Symfony v8.
5+
- Upgrade PHPunit to v12.
6+
- Fix Symfony and PHPUnit deprecations.
7+
- Remove `form` format deprecations.
8+
- Fix [#22](https://github.com/sfmok/request-input-bundle/issues/22)
9+
- Fix [#21](https://github.com/sfmok/request-input-bundle/issues/21)
10+
311
## 1.2.6
412
- Support symfony 7 & fix deprecation.
513
- Deprecate `form` request input data.

LICENSE.md

100644100755
File mode changed.

README.md

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
**RequestInputBundle** converts request data into DTO inputs objects with validation.
88

9-
- Request data supported: `json`, `xml` and `form` based on `Content-Type` header.
9+
- Request data supported: `json` and `xml` based on `Content-Type` header.
1010
- Resolve inputs arguments for controllers actions.
1111
- Create DTO inputs outside controllers
1212
- Validate DTO inputs objects.

composer.json

100644100755
Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,19 @@
1818
],
1919
"license": "MIT",
2020
"require": {
21-
"php": ">=8.1",
22-
"symfony/http-kernel": "^6.2|^7.0",
23-
"symfony/http-foundation": "^6.2|^7.0",
24-
"symfony/serializer": "^6.2|^7.0",
25-
"symfony/validator": "^6.2|^7.0",
26-
"symfony/dependency-injection": "^6.2|^7.0",
27-
"symfony/property-access": "^6.2|^7.0"
21+
"php": ">=8.4",
22+
"symfony/http-kernel": "^8.0",
23+
"symfony/http-foundation": "^8.0",
24+
"symfony/serializer": "^8.0",
25+
"symfony/validator": "^8.0",
26+
"symfony/dependency-injection": "^8.0",
27+
"symfony/property-access": "^8.0"
2828
},
2929
"require-dev": {
30-
"phpunit/phpunit": "^10.5",
31-
"symfony/framework-bundle": "^6.2|^7.0",
30+
"phpunit/phpunit": "^12.0",
31+
"symfony/framework-bundle": "^8.0",
3232
"friendsofphp/php-cs-fixer": "^3.5",
33-
"phpstan/phpstan": "^1.9"
33+
"phpstan/phpstan": "^2.0"
3434
},
3535
"autoload": {
3636
"psr-4": {

0 commit comments

Comments
 (0)