Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: CI
on:
push:
branches:
- main
- main
pull_request:
release:

Expand All @@ -13,9 +13,9 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
php: [ 8.1, 8.2, 8.3 ]
php: [ 8.1, 8.2, 8.3, 8.4 ]
deps: [ highest ]
symfony: [ 5.4.*, 6.3.*, 6.4.* ]
symfony: [ 5.4.*, 6.4.* ]
include:
- php: 8.1
deps: lowest
Expand All @@ -24,6 +24,10 @@ jobs:
symfony: '7.0.*'
- php: 8.3
symfony: '7.1.*'
- php: 8.4
symfony: '7.3.*'
- php: 8.4
symfony: '8.0.*'
steps:
- uses: zenstruck/.github@php-test-symfony
with:
Expand Down
18 changes: 11 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,16 @@

"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",
"roave/security-advisories": "dev-latest",
"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"
},
Expand All @@ -51,10 +52,13 @@
}
},

"minimum-stability": "dev",
"minimum-stability": "RC",
"prefer-stable": true,

"extra": {
"symfony": {
"require": "^8.0"
},
"branch-alias": {
"dev-master": "2.x-dev"
}
Expand Down
4 changes: 2 additions & 2 deletions src/DateTimeFormatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down
1 change: 0 additions & 1 deletion tests/IntegrationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Loading