Skip to content

Commit 09106f1

Browse files
feat: allow symfony 8 (#222)
add tests for PHP 8.5 Co-authored-by: Christopher Georg <christopher.georg@sr-travel.de>
1 parent 93e9528 commit 09106f1

4 files changed

Lines changed: 15 additions & 10 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,14 @@ jobs:
2424
symfony: '7.0.*'
2525
- php: 8.3
2626
symfony: '7.1.*'
27+
- php: 8.4
28+
symfony: '7.1.*'
29+
- php: 8.5
30+
symfony: '7.4.*'
31+
- php: 8.5
32+
symfony: '8.0.*'
2733
steps:
28-
- uses: zenstruck/.github@php-test-symfony
34+
- uses: zenstruck/.github/actions/php-test-symfony@main
2935
with:
3036
php: ${{ matrix.php }}
3137
symfony: ${{ matrix.symfony }}

composer.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@
1919

2020
"require": {
2121
"php": ">=8.1",
22-
"symfony/dependency-injection": "^5.4|^6.0|^7.0",
23-
"symfony/translation": "^5.4|^6.0|^7.0",
24-
"symfony/config": "^5.4|^6.0|^7.0"
22+
"symfony/dependency-injection": "^5.4|^6.0|^7.0|^8.0",
23+
"symfony/translation": "^5.4|^6.0|^7.0|^8.0",
24+
"symfony/config": "^5.4|^6.0|^7.0|^8.0"
2525
},
2626

2727
"require-dev": {
28-
"symfony/framework-bundle": "^5.4|^6.0|^7.0",
29-
"symfony/phpunit-bridge": "^5.4|^6.0|^7.0",
30-
"symfony/twig-bundle": "^5.4|^6.0|^7.0",
28+
"symfony/framework-bundle": "^5.4|^6.0|^7.0|^8.0",
29+
"symfony/phpunit-bridge": "^5.4|^6.0|^7.0|^8.0",
30+
"symfony/twig-bundle": "^5.4|^6.0|^7.0|^8.0",
3131
"phpstan/phpstan": "^1.11",
3232
"phpunit/phpunit": "^9.6"
3333
},

src/DateTimeFormatter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public function __construct(private TranslatorInterface $translator)
1919
public function formatDiff(
2020
int|string|\DateTimeInterface $from,
2121
int|string|\DateTimeInterface|null $to = null,
22-
?string $locale = null
22+
?string $locale = null,
2323
): string {
2424
$from = self::formatDateTime($from);
2525
$to = self::formatDateTime($to);
@@ -95,7 +95,7 @@ public function formatDuration(float $seconds, ?string $locale = null): string
9595
public function formatAge(
9696
int|string|\DateTimeInterface $from,
9797
int|string|\DateTimeInterface|null $to = null,
98-
?string $locale = null
98+
?string $locale = null,
9999
): string {
100100
$from = self::formatDateTime($from);
101101
$to = self::formatDateTime($to);

tests/IntegrationTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@ protected function configureContainer(ContainerBuilder $container, LoaderInterfa
100100
__DIR__.'/fixtures' => 'integration_test',
101101
],
102102
'strict_variables' => true,
103-
'exception_controller' => null,
104103
]);
105104
// avoid logging request logs
106105
$container->register('logger', Logger::class)

0 commit comments

Comments
 (0)