Skip to content

Commit 5f35aee

Browse files
committed
Drop support for Symfony lower than 5.4
Those versions are not maintained anymore, so keeping support for them is not worth it. This also drops supports for PHP versions lower than 7.1.3 as that's the minimum version supported by Symfony 4.
1 parent 7862edf commit 5f35aee

File tree

8 files changed

+13
-81
lines changed

8 files changed

+13
-81
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,24 +14,16 @@ jobs:
1414
fail-fast: false
1515
matrix:
1616
php:
17-
- '5.5'
18-
- '5.6'
1917
- '7.1'
2018
- '7.2'
2119
- '7.3'
2220
- '7.4'
2321
- '8.0'
2422
symfony-versions: [false]
2523
include:
26-
- description: 'Symfony 2.*'
27-
php: '5.6'
28-
symfony-versions: '^2.8'
29-
- description: 'Symfony 3.*'
30-
php: '7.4'
31-
symfony-versions: '^3.0'
3224
- description: 'Symfony 4.*'
3325
php: '7.4'
34-
symfony-versions: '^4.0'
26+
symfony-versions: '^4.4'
3527
name: PHP ${{ matrix.php }} ${{ matrix.description }}
3628
steps:
3729
- name: Checkout

Form/Type/ChangePasswordFormType.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -85,16 +85,6 @@ public function configureOptions(OptionsResolver $resolver)
8585
]);
8686
}
8787

88-
// BC for SF < 3.0
89-
90-
/**
91-
* {@inheritdoc}
92-
*/
93-
public function getName()
94-
{
95-
return $this->getBlockPrefix();
96-
}
97-
9888
/**
9989
* {@inheritdoc}
10090
*/

Form/Type/GroupFormType.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -54,16 +54,6 @@ public function configureOptions(OptionsResolver $resolver)
5454
]);
5555
}
5656

57-
// BC for SF < 3.0
58-
59-
/**
60-
* {@inheritdoc}
61-
*/
62-
public function getName()
63-
{
64-
return $this->getBlockPrefix();
65-
}
66-
6757
/**
6858
* {@inheritdoc}
6959
*/

Form/Type/ProfileFormType.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -74,16 +74,6 @@ public function configureOptions(OptionsResolver $resolver)
7474
]);
7575
}
7676

77-
// BC for SF < 3.0
78-
79-
/**
80-
* {@inheritdoc}
81-
*/
82-
public function getName()
83-
{
84-
return $this->getBlockPrefix();
85-
}
86-
8777
/**
8878
* {@inheritdoc}
8979
*/

Form/Type/RegistrationFormType.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -67,16 +67,6 @@ public function configureOptions(OptionsResolver $resolver)
6767
]);
6868
}
6969

70-
// BC for SF < 3.0
71-
72-
/**
73-
* {@inheritdoc}
74-
*/
75-
public function getName()
76-
{
77-
return $this->getBlockPrefix();
78-
}
79-
8070
/**
8171
* {@inheritdoc}
8272
*/

Form/Type/ResettingFormType.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -62,16 +62,6 @@ public function configureOptions(OptionsResolver $resolver)
6262
]);
6363
}
6464

65-
// BC for SF < 3.0
66-
67-
/**
68-
* {@inheritdoc}
69-
*/
70-
public function getName()
71-
{
72-
return $this->getBlockPrefix();
73-
}
74-
7565
/**
7666
* {@inheritdoc}
7767
*/

Form/Type/UsernameFormType.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -52,16 +52,6 @@ public function getParent()
5252
return TextType::class;
5353
}
5454

55-
// BC for SF < 3.0
56-
57-
/**
58-
* @return string
59-
*/
60-
public function getName()
61-
{
62-
return $this->getBlockPrefix();
63-
}
64-
6555
/**
6656
* {@inheritdoc}
6757
*/

composer.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,29 +21,29 @@
2121
}
2222
],
2323
"require": {
24-
"php": "^5.5.9 || ^7.0 || ^8.0",
24+
"php": "^7.1.3 || ^8.0",
2525
"paragonie/random_compat": "^1 || ^2 || ^9",
26-
"symfony/form": "^2.8 || ^3.0 || ^4.0",
27-
"symfony/framework-bundle": "^2.8 || ^3.0 || ^4.0",
28-
"symfony/security-bundle": "^2.8 || ^3.0 || ^4.0",
29-
"symfony/templating": "^2.8 || ^3.0 || ^4.0",
30-
"symfony/translation": "^2.8 || ^3.0 || ^4.0",
31-
"symfony/twig-bundle": "^2.8 || ^3.0 || ^4.0",
32-
"symfony/validator": "^2.8 || ^3.0 || ^4.0",
26+
"symfony/form": "^4.4",
27+
"symfony/framework-bundle": "^4.4",
28+
"symfony/security-bundle": "^4.4",
29+
"symfony/templating": "^4.4",
30+
"symfony/translation": "^4.4",
31+
"symfony/twig-bundle": "^4.4",
32+
"symfony/validator": "^4.4",
3333
"twig/twig": "^1.34 || ^2.4 || ^3.0"
3434
},
3535
"conflict": {
3636
"doctrine/doctrine-bundle": "<1.3",
3737
"doctrine/persistence": "<1.3",
38-
"symfony/doctrine-bridge": "<2.7"
38+
"symfony/doctrine-bridge": "<4.4"
3939
},
4040
"require-dev": {
4141
"doctrine/doctrine-bundle": "^1.3",
4242
"friendsofphp/php-cs-fixer": "^2.2",
4343
"swiftmailer/swiftmailer": "^4.3 || ^5.0 || ^6.0",
44-
"symfony/console": "^2.8 || ^3.0 || ^4.0",
45-
"symfony/phpunit-bridge": "^4.4 || ^5.3",
46-
"symfony/yaml": "^2.8 || ^3.0 || ^4.0"
44+
"symfony/console": "^4.4",
45+
"symfony/phpunit-bridge": "^5.3",
46+
"symfony/yaml": "^4.4"
4747
},
4848
"config": {
4949
"sort-packages": true

0 commit comments

Comments
 (0)