diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index b67a347..e651a60 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -24,8 +24,14 @@ jobs: symfony: '7.0.*' - php: 8.3 symfony: '7.1.*' + - php: 8.4 + symfony: '7.1.*' + - php: 8.5 + symfony: '7.4.*' + - php: 8.5 + symfony: '8.0.*' steps: - - uses: zenstruck/.github@php-test-symfony + - uses: zenstruck/.github/actions/php-test-symfony@main with: php: ${{ matrix.php }} symfony: ${{ matrix.symfony }} diff --git a/composer.json b/composer.json index 10736ae..3ef6bd7 100644 --- a/composer.json +++ b/composer.json @@ -19,15 +19,15 @@ "require": { "php": ">=8.1", - "symfony/dependency-injection": "^5.4|^6.0|^7.0", - "symfony/translation": "^5.4|^6.0|^7.0", - "symfony/config": "^5.4|^6.0|^7.0" + "symfony/dependency-injection": "^5.4|^6.0|^7.0|^8.0", + "symfony/translation": "^5.4|^6.0|^7.0|^8.0", + "symfony/config": "^5.4|^6.0|^7.0|^8.0" }, "require-dev": { - "symfony/framework-bundle": "^5.4|^6.0|^7.0", - "symfony/phpunit-bridge": "^5.4|^6.0|^7.0", - "symfony/twig-bundle": "^5.4|^6.0|^7.0", + "symfony/framework-bundle": "^5.4|^6.0|^7.0|^8.0", + "symfony/phpunit-bridge": "^5.4|^6.0|^7.0|^8.0", + "symfony/twig-bundle": "^5.4|^6.0|^7.0|^8.0", "phpstan/phpstan": "^1.11", "phpunit/phpunit": "^9.6" }, diff --git a/src/DateTimeFormatter.php b/src/DateTimeFormatter.php index aa4687a..9d16cd9 100644 --- a/src/DateTimeFormatter.php +++ b/src/DateTimeFormatter.php @@ -19,7 +19,7 @@ public function __construct(private TranslatorInterface $translator) public function formatDiff( int|string|\DateTimeInterface $from, int|string|\DateTimeInterface|null $to = null, - ?string $locale = null + ?string $locale = null, ): string { $from = self::formatDateTime($from); $to = self::formatDateTime($to); @@ -95,7 +95,7 @@ public function formatDuration(float $seconds, ?string $locale = null): string public function formatAge( int|string|\DateTimeInterface $from, int|string|\DateTimeInterface|null $to = null, - ?string $locale = null + ?string $locale = null, ): string { $from = self::formatDateTime($from); $to = self::formatDateTime($to); diff --git a/tests/IntegrationTest.php b/tests/IntegrationTest.php index 5c6313b..3904535 100644 --- a/tests/IntegrationTest.php +++ b/tests/IntegrationTest.php @@ -100,7 +100,6 @@ protected function configureContainer(ContainerBuilder $container, LoaderInterfa __DIR__.'/fixtures' => 'integration_test', ], 'strict_variables' => true, - 'exception_controller' => null, ]); // avoid logging request logs $container->register('logger', Logger::class)