Skip to content

Commit

Permalink
feat: Symfony 7 support
Browse files Browse the repository at this point in the history
Adjusted the CI test matrix to add PHP 8.3 and only supported Symfony versions
  • Loading branch information
kbond committed Oct 24, 2023
1 parent 049e519 commit d3d1198
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 7 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,21 @@ jobs:
php:
- '8.1'
- '8.2'
- '8.3'
dependency:
- ''
symfony:
- '5.4.*'
- '6.2.*'
- '6.3.*'
- '6.4.*'
- '7.0.*'
include:
- php: '8.1'
symfony: '5.4.*'
dependency: 'lowest'
exclude:
- php: '8.1'
symfony: '7.0.*'
fail-fast: false
steps:
- name: Checkout
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
6 changes: 4 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.2 || ^7.0"
},
"require-dev": {
"phpunit/phpunit": "^9.6 || ^10.0"
Expand All @@ -33,5 +33,7 @@
"branch-alias": {
"dev-master": "5.0.x-dev"
}
}
},
"minimum-stability": "dev",
"prefer-stable": true
}

0 comments on commit d3d1198

Please sign in to comment.