Skip to content

Commit 4638ca7

Browse files
authored
Merge pull request #1466 from garak/phpunit10
✅ remove other phpunit deprecations
2 parents 6409edc + 6f8ad83 commit 4638ca7

File tree

9 files changed

+13
-10
lines changed

9 files changed

+13
-10
lines changed

.github/workflows/build.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
- name: Checkout
3737
uses: actions/checkout@v4
3838
- name: Require the vendor
39-
run: composer require --dev --no-update vincentlanglet/twig-cs-fixer ^2.11
39+
run: composer require --dev --no-update vincentlanglet/twig-cs-fixer ^3.1
4040
- name: Update
4141
run: composer update --no-interaction --no-progress
4242
- name: Run
@@ -72,7 +72,7 @@ jobs:
7272
with_oneupbundle: false
7373
max_deprecations: 5
7474
- php: '8.1'
75-
symfony: '6.3.*'
75+
symfony: '6.4.*'
7676
dependencies: highest
7777
with_imagine: false
7878
with_oneupbundle: true
@@ -104,6 +104,8 @@ jobs:
104104
php-version: ${{ matrix.php }}
105105
extensions: mongodb-stable, pdo_sqlite
106106
- run: composer require --no-update doctrine/annotations:^1.14
107+
- run: |
108+
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
107109
- run: |
108110
composer global config --no-plugins allow-plugins.symfony/flex true
109111
composer global require --no-interaction --no-progress symfony/flex:^2.2

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@
2424
"symfony/dependency-injection": "^5.4 || ^6.0 || ^7.0",
2525
"symfony/event-dispatcher-contracts": "^3.1",
2626
"symfony/http-foundation": "^5.4 || ^6.0 || ^7.0",
27-
"symfony/http-kernel": "^5.4 || ^6.0, !=6.4.9 || ^7.0, !=7.1.2",
27+
"symfony/http-kernel": "^5.4 || ^6.0 || ^7.0",
2828
"symfony/mime": "^5.4 || ^6.0 || ^7.0",
2929
"symfony/property-access": "^5.4 || ^6.0 || ^7.0",
3030
"symfony/string": "^5.4 || ^6.0 || ^7.0"
3131
},
3232
"require-dev": {
3333
"ext-sqlite3": "*",
34-
"dg/bypass-finals": "^1.3",
34+
"dg/bypass-finals": "^1.8",
3535
"doctrine/doctrine-bundle": "^2.7",
3636
"doctrine/mongodb-odm": "^2.4",
3737
"doctrine/orm": "^2.13",

docker/Dockerfile81

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ WORKDIR /srv/vich-uploader
3838
COPY . ./
3939

4040
RUN set -eux; \
41+
sed -i 's/"league\/flysystem": "<2.0"/"league\/flysystem": "<2.0", "symfony\/http-kernel": "6.4.*,>6.4.8 || 7.1.*,>7.1.1"/' composer.json; \
4142
composer global config --no-plugins allow-plugins.symfony/flex true; \
4243
composer global require --no-interaction --no-progress symfony/flex:^2.2; \
4344
composer config extra.symfony.require "^6.4"; \

docker/Dockerfile82

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ WORKDIR /srv/vich-uploader
3838
COPY . ./
3939

4040
RUN set -eux; \
41+
sed -i 's/"league\/flysystem": "<2.0"/"league\/flysystem": "<2.0", "symfony\/http-kernel": "6.0.*,>6.4.8 || 7.1.*,>7.1.1"/' composer.json; \
4142
composer require --no-update doctrine/annotations:^1.14; \
4243
composer update --prefer-dist --ignore-platform-reqs; \
4344
composer clear-cache

docker/Dockerfile83

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ WORKDIR /srv/vich-uploader
3838
COPY . ./
3939

4040
RUN set -eux; \
41+
sed -i 's/"league\/flysystem": "<2.0"/"league\/flysystem": "<2.0", "symfony\/http-kernel": "6.0.*,>6.4.8 || 7.1.*,>7.1.1"/' composer.json; \
4142
composer require --no-update doctrine/annotations:^1.14; \
4243
composer update --prefer-dist --ignore-platform-reqs; \
4344
composer clear-cache

tests/Handler/UploadHandlerTest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -342,12 +342,10 @@ protected function validEvent(): object
342342

343343
protected function expectEvents(array $events): void
344344
{
345-
$arguments = \array_map(fn (string $event): array => [$this->validEvent(), $event], $events);
346-
347345
$this->dispatcher
348346
->expects(self::exactly(\count($events)))
349347
->method('dispatch')
350-
->withConsecutive(...$arguments)
348+
->willReturnCallback(fn (object $event, string $eventName): object => $event)
351349
;
352350
}
353351
}

tests/Storage/Flysystem/AbstractFlysystemStorageTest.php renamed to tests/Storage/Flysystem/AbstractFlysystemStorageTestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* @author Markus Bachmann <markus.bachmann@bachi.biz>
1818
* @author Titouan Galopin <galopintitouan@gmail.com>
1919
*/
20-
abstract class AbstractFlysystemStorageTest extends StorageTestCase
20+
abstract class AbstractFlysystemStorageTestCase extends StorageTestCase
2121
{
2222
final public const FS_KEY = 'filesystemKey';
2323

tests/Storage/Flysystem/MountManagerFlysystemStorageTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* @author Markus Bachmann <markus.bachmann@bachi.biz>
1010
* @author Titouan Galopin <galopintitouan@gmail.com>
1111
*/
12-
final class MountManagerFlysystemStorageTest extends AbstractFlysystemStorageTest
12+
final class MountManagerFlysystemStorageTest extends AbstractFlysystemStorageTestCase
1313
{
1414
protected function createRegistry(FilesystemOperator $filesystem): MountManager
1515
{

tests/Storage/Flysystem/PsrContainerFlysystemStorageTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
/**
99
* @author Titouan Galopin <galopintitouan@gmail.com>
1010
*/
11-
final class PsrContainerFlysystemStorageTest extends AbstractFlysystemStorageTest
11+
final class PsrContainerFlysystemStorageTest extends AbstractFlysystemStorageTestCase
1212
{
1313
protected function createRegistry(FilesystemOperator $filesystem): ContainerInterface
1414
{

0 commit comments

Comments
 (0)