8000 chore: Fix several supported version things (#47) · SymfonyTest/symfony-bundle-test@8e8be14 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8e8be14

Browse files
authored
chore: Fix several supported version things (#47)
* chore: Several version related changes * cut: Remove check for older symfony version * fix: baseline
1 parent 974f11b commit 8e8be14

File tree

4 files changed

+4
-16
lines changed

4 files changed

+4
-16
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- 'lowest'
1818
symfony:
1919
- '4.4.*'
20-
- '5.0.*'
20+
- '5.3.*'
2121
- '6.0.*'
2222
exclude:
2323
- php: '7.2'
@@ -33,8 +33,6 @@ jobs:
3333
symfony: '4.4.*'
3434
- php: '7.4'
3535
symfony: '6.0.*'
36-
- php: '8.0'
37-
symfony: '3.4.*'
3836
- php: '8.0'
3937
symfony: '4.4.*'
4038
fail-fast: false

phpstan-baseline.neon

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,6 @@ parameters:
2525
count: 1
2626
path: src/BaseBundleTestCase.php
2727

28-
-
29-
message: "#^Comparison operation \"\\>\\=\" between 50306 and 30300 is always true\\.$#"
30-
count: 1
31-
path: src/config/parameters.php
32-
3328
-
3429
message: "#^Comparison operation \"\\>\\=\" between 50306 and 50100 is always true\\.$#"
3530
count: 1

src/config/parameters.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

3-
// If sf 3.3 and no annotations is installed, then disable it.
4-
if (\Symfony\Component\HttpKernel\Kernel::VERSION_ID >= 30300 && !class_exists('Doctrine\Common\Annotations\Annotation')) {
3+
// If annotations aren't installed, disable it.
4+
if (!class_exists('Doctrine\Common\Annotations\Annotation')) {
55
$container->loadFromExtension('framework', [
66
'annotations' => ['enabled' => false],
77
]);

tests/Fixtures/ConfigurationBundle/DependencyInjection/Configuration.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,7 @@ final class Configuration implements ConfigurationInterface
1313
public function getConfigTreeBuilder()
1414
{
1515
$tree = new TreeBuilder('configuration');
16-
17-
if (method_exists($tree, 'getRootNode')) {
18-
$root = $tree->getRootNode();
19-
} else {
20-
$root = $tree->root('configuration');
21-
}
16+
$root = $tree->getRootNode();
2217

2318
$root
2419
->children()

0 commit comments

Comments
 (0)
0