Skip to content

Commit

Permalink
Add support for Symfony 7 (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbabker authored Nov 16, 2023
1 parent 049e519 commit 0e721e5
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 9 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,20 @@ jobs:
- ''
symfony:
- '5.4.*'
- '6.2.*'
- '6.3.*'
- '6.4.*@beta'
- '7.0.*@beta'
include:
- php: '8.1'
symfony: '5.4.*'
dependency: 'lowest'
exclude:
- php: '8.1'
symfony: '7.0.*@beta'
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand All @@ -36,7 +41,7 @@ jobs:

- name: Get Composer Cache Directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT

- name: Cache dependencies
uses: actions/cache@v3
Expand Down
2 changes: 1 addition & 1 deletion Tests/Partial/Fixtures/ConfigurationStub.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

class ConfigurationStub implements ConfigurationInterface
{
public function getConfigTreeBuilder()
public function getConfigTreeBuilder(): TreeBuilder
{
$treeBuilder = new TreeBuilder('root');
$root = $treeBuilder->getRootNode();
Expand Down
2 changes: 1 addition & 1 deletion Tests/PhpUnit/Fixtures/AlwaysValidConfiguration.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

class AlwaysValidConfiguration implements ConfigurationInterface
{
public function getConfigTreeBuilder()
public function getConfigTreeBuilder(): TreeBuilder
{
return new TreeBuilder('root');
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

class ConfigurationWithMultipleArrayKeys implements ConfigurationInterface
{
public function getConfigTreeBuilder()
public function getConfigTreeBuilder(): TreeBuilder
{
$treeBuilder = new TreeBuilder('root');
$root = $treeBuilder->getRootNode();
Expand Down
2 changes: 1 addition & 1 deletion Tests/PhpUnit/Fixtures/ConfigurationWithRequiredValue.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

class ConfigurationWithRequiredValue implements ConfigurationInterface
{
public function getConfigTreeBuilder()
public function getConfigTreeBuilder(): TreeBuilder
{
$treeBuilder = new TreeBuilder('root');
$root = $treeBuilder->getRootNode();
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
],
"require": {
"php": "^8.1",
"symfony/config": "^5.4 || ^6.2"
"symfony/config": "^5.4 || ^6.3 || ^7.0"
},
"require-dev": {
"phpunit/phpunit": "^9.6 || ^10.0"
Expand All @@ -31,7 +31,7 @@
},
"extra": {
"branch-alias": {
"dev-master": "5.0.x-dev"
"dev-master": "5.1.x-dev"
}
}
}

0 comments on commit 0e721e5

Please sign in to comment.