Skip to content

Commit 0a17d6a

Browse files
committed
support for Symfony 5
2 parents d557a22 + 3d73bab commit 0a17d6a

File tree

3 files changed

+10
-14
lines changed

3 files changed

+10
-14
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -139,16 +139,12 @@ jobs:
139139
- '7.3'
140140
- '7.4'
141141
symfony-version:
142-
- '3.0'
143-
- '3.1'
144-
- '3.2'
145-
- '3.3'
146-
- '3.4'
147-
- '4.0'
148-
- '4.1'
149-
- '4.2'
150-
- '4.3'
151142
- '4.4'
143+
- '5.0'
144+
- '5.1'
145+
- '5.2'
146+
- '5.3'
147+
- '5.4'
152148
composer-dependencies:
153149
- 'highest'
154150
- 'lowest'

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
"consistence/consistence": "^1.0|^2.0",
1616
"consistence/consistence-doctrine": "^3.0",
1717
"doctrine/dbal": "^2.13.1|^3.0",
18-
"symfony/config": "^3.0|~4.0.0|^4.1.4",
19-
"symfony/dependency-injection": "^3.0|^4.0",
20-
"symfony/http-kernel": "^3.0|^4.0"
18+
"symfony/config": "^4.4|^5.0",
19+
"symfony/dependency-injection": "^4.4|^5.0",
20+
"symfony/http-kernel": "^4.4|^5.0"
2121
},
2222
"require-dev": {
2323
"consistence/coding-standard": "3.10.1",

src/DependencyInjection/Configuration.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ public function __construct(
2626

2727
public function getConfigTreeBuilder(): TreeBuilder
2828
{
29-
$treeBuilder = new TreeBuilder();
30-
$rootNode = $treeBuilder->root($this->rootNode);
29+
$treeBuilder = new TreeBuilder($this->rootNode);
30+
$rootNode = $treeBuilder->getRootNode();
3131

3232
$rootNode->children()->append($this->createEnumNode('enum'));
3333

0 commit comments

Comments
 (0)