Skip to content

Commit 3336181

Browse files
committed
⬆️ allow Symfony 8
1 parent ab1f562 commit 3336181

4 files changed

Lines changed: 43 additions & 32 deletions

File tree

.github/workflows/build.yaml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: build
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request: ~
48

59
env:
610
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -85,17 +89,24 @@ jobs:
8589
with_oneupbundle: false
8690
max_deprecations: 0
8791
- php: '8.3'
88-
symfony: '7.2.*'
92+
symfony: '7.3.*'
8993
dependencies: highest
9094
with_imagine: false
9195
with_oneupbundle: false
9296
max_deprecations: 0
9397
- php: '8.4'
94-
symfony: '7.3.*@dev'
98+
symfony: '7.4.*@dev'
9599
dependencies: highest
96100
with_imagine: false
97101
with_oneupbundle: false
98102
max_deprecations: 6
103+
- php: '8.4'
104+
symfony: '8.0.*@dev'
105+
dependencies: highest
106+
with_imagine: false
107+
with_oneupbundle: false
108+
max_deprecations: 6
109+
99110
name: PHP ${{ matrix.php }} with Symfony ${{ matrix.symfony }} tests with ${{ matrix.dependencies }} dependencies
100111
steps:
101112
- name: Checkout
@@ -115,7 +126,7 @@ jobs:
115126
sed -i 's/"league\/flysystem": "<2.0"/"league\/flysystem": "<2.0",\n"symfony\/http-kernel": "6.4.*,>6.4.8 || 7.1.*,>7.1.1"/' composer.json
116127
- run: |
117128
composer global config --no-plugins allow-plugins.symfony/flex true
118-
composer global require --no-interaction --no-progress symfony/flex:^2.2
129+
composer global require --no-interaction --no-progress symfony/flex:^2.8
119130
composer config extra.symfony.require ${{ matrix.symfony }}
120131
if: matrix.symfony != '*'
121132
- name: use possible dev deps

composer.json

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@
1919
"ext-simplexml": "*",
2020
"doctrine/persistence": "^3.0 || ^4.0",
2121
"jms/metadata": "^2.4",
22-
"symfony/config": "^5.4 || ^6.0 || ^7.0",
23-
"symfony/console": "^5.4 || ^6.0 || ^7.0",
24-
"symfony/dependency-injection": "^5.4 || ^6.0 || ^7.0",
22+
"symfony/config": "^5.4 || ^6.0 || ^7.0 || ^8.0",
23+
"symfony/console": "^5.4 || ^6.0 || ^7.0 || ^8.0",
24+
"symfony/dependency-injection": "^5.4 || ^6.0 || ^7.0 || ^8.0",
2525
"symfony/event-dispatcher-contracts": "^3.1",
26-
"symfony/http-foundation": "^5.4 || ^6.0 || ^7.0",
27-
"symfony/http-kernel": "^5.4 || ^6.0 || ^7.0",
28-
"symfony/mime": "^5.4 || ^6.0 || ^7.0",
29-
"symfony/property-access": "^5.4 || ^6.0 || ^7.0",
30-
"symfony/string": "^5.4 || ^6.0 || ^7.0"
26+
"symfony/http-foundation": "^5.4 || ^6.0 || ^7.0 || ^8.0",
27+
"symfony/http-kernel": "^5.4 || ^6.0 || ^7.0 || ^8.0",
28+
"symfony/mime": "^5.4 || ^6.0 || ^7.0 || ^8.0",
29+
"symfony/property-access": "^5.4 || ^6.0 || ^7.0 || ^8.0",
30+
"symfony/string": "^5.4 || ^6.0 || ^7.0 || ^8.0"
3131
},
3232
"require-dev": {
3333
"ext-sqlite3": "*",
@@ -41,22 +41,22 @@
4141
"league/flysystem-memory": "^2.0 || ^3.0",
4242
"matthiasnoback/symfony-dependency-injection-test": "^5.1",
4343
"mikey179/vfsstream": "^1.6.11",
44-
"phpunit/phpunit": "^10.5 || ^11.5 || ^12.0",
45-
"symfony/asset": "^5.4 || ^6.0 || ^7.0",
46-
"symfony/browser-kit": "^5.4 || ^6.0 || ^7.0",
47-
"symfony/css-selector": "^5.4 || ^6.0 || ^7.0",
48-
"symfony/doctrine-bridge": "^5.4 || ^6.0 || ^7.0",
49-
"symfony/dom-crawler": "^5.4 || ^6.0 || ^7.0",
50-
"symfony/form": "^5.4 || ^6.0 || ^7.0",
51-
"symfony/framework-bundle": "^5.4 || ^6.0 || ^7.0",
52-
"symfony/phpunit-bridge": "^7.2",
53-
"symfony/security-csrf": "^5.4 || ^6.0 || ^7.0",
54-
"symfony/translation": "^5.4 || ^6.0 || ^7.0",
55-
"symfony/twig-bridge": "^5.4 || ^6.0 || ^7.0",
56-
"symfony/twig-bundle": "^5.4 || ^6.0 || ^7.0",
57-
"symfony/validator": "^5.4 || ^6.0 || ^7.0",
58-
"symfony/var-dumper": "^5.4 || ^6.0 || ^7.0",
59-
"symfony/yaml": "^5.4 || ^6.0 || ^7.0"
44+
"phpunit/phpunit": "^10.5 || ^11.5 || ^12.2",
45+
"symfony/asset": "^5.4 || ^6.0 || ^7.0 || ^8.0",
46+
"symfony/browser-kit": "^5.4 || ^6.0 || ^7.0 || ^8.0",
47+
"symfony/css-selector": "^5.4 || ^6.0 || ^7.0 || ^8.0",
48+
"symfony/doctrine-bridge": "^5.4 || ^6.0 || ^7.0 || ^8.0",
49+
"symfony/dom-crawler": "^5.4 || ^6.0 || ^7.0 || ^8.0",
50+
"symfony/form": "^5.4 || ^6.0 || ^7.0 || ^8.0",
51+
"symfony/framework-bundle": "^5.4 || ^6.0 || ^7.0 || ^8.0",
52+
"symfony/phpunit-bridge": "^7.3",
53+
"symfony/security-csrf": "^5.4 || ^6.0 || ^7.0 || ^8.0",
54+
"symfony/translation": "^5.4 || ^6.0 || ^7.0 || ^8.0",
55+
"symfony/twig-bridge": "^5.4 || ^6.0 || ^7.0 || ^8.0",
56+
"symfony/twig-bundle": "^5.4 || ^6.0 || ^7.0 || ^8.0",
57+
"symfony/validator": "^5.4 || ^6.0 || ^7.0 || ^8.0",
58+
"symfony/var-dumper": "^5.4 || ^6.0 || ^7.0 || ^8.0",
59+
"symfony/yaml": "^5.4 || ^6.0 || ^7.0 || ^8.0"
6060
},
6161
"suggest": {
6262
"doctrine/doctrine-bundle": "For integration with Doctrine",

src/Naming/DirectoryNamerInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ interface DirectoryNamerInterface
1919
* @param object|array $object The object or array the upload is attached to
2020
* @param PropertyMapping $mapping The mapping to use to manipulate the given object
2121
*
22-
* @return string The directory name
23-
*
2422
* @phpstan-param T $object
23+
*
24+
* @return string The directory name
2525
*/
2626
public function directoryName(object|array $object, PropertyMapping $mapping): string;
2727
}

src/Naming/NamerInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ interface NamerInterface
1919
* @param object|array $object The object or array the upload is attached to
2020
* @param PropertyMapping $mapping The mapping to use to manipulate the given object
2121
*
22-
* @return string The file name
23-
*
2422
* @phpstan-param T $object
23+
*
24+
* @return string The file name
2525
*/
2626
public function name(object $object, PropertyMapping $mapping): string;
2727
}

0 commit comments

Comments
 (0)