-
Notifications
You must be signed in to change notification settings - Fork 12
Symfony 8 support #44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 7 commits
439e1e8
d921472
404356e
1e6d26e
5b0111e
b18934f
2725218
9f5361b
a94a2da
f71c764
9679026
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -33,6 +33,6 @@ | |
| 'single_line_throw' => false, | ||
| 'simplified_null_return' => false, | ||
| 'void_return' => true, | ||
| 'yoda_style' => [], | ||
| 'yoda_style' => ['equal' => false, 'identical' => false, 'less_and_greater' => false], | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Disabling
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It was required by php-cs-fixer to configure it explicitly. |
||
| ]) | ||
| ; | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -132,7 +132,7 @@ protected function generateKey(FormView &$view, $key, $value): void | |
| } | ||
|
|
||
| /** | ||
| * @param array<string,mixed> &$vars | ||
| * @param array<mixed> &$vars | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This downgrade from
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| */ | ||
| protected function setVar(array &$vars, string $key, mixed $value): void | ||
| { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| <?php | ||
|
|
||
| /* | ||
| * This file is part of the ElaoFormTranslation bundle. | ||
| * | ||
| * Copyright (C) Elao | ||
| * | ||
| * @author Elao <contact@elao.com> | ||
| */ | ||
|
|
||
| use Elao\Bundle\FormTranslationBundle\Form\Extension\ButtonTypeExtension; | ||
| use Elao\Bundle\FormTranslationBundle\Form\Extension\ChoiceTypeExtension; | ||
| use Elao\Bundle\FormTranslationBundle\Form\Extension\CollectionTypeExtension; | ||
| use Elao\Bundle\FormTranslationBundle\Form\Extension\FormTypeExtension; | ||
| use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator; | ||
| use Symfony\Component\Form\Extension\Core\Type\ButtonType; | ||
| use Symfony\Component\Form\Extension\Core\Type\ChoiceType; | ||
| use Symfony\Component\Form\Extension\Core\Type\CollectionType; | ||
| use Symfony\Component\Form\Extension\Core\Type\FormType; | ||
|
|
||
| return static function (ContainerConfigurator $container): void { | ||
| $services = $container->services(); | ||
|
|
||
| $services->set('elao.form_translation.extension.tree_aware_extension') | ||
| ->abstract(); | ||
|
|
||
| $services->set('elao.form_translation.extension.form_type_extension', FormTypeExtension::class) | ||
| ->parent('elao.form_translation.extension.tree_aware_extension') | ||
| ->tag('form.type_extension', ['extended-type' => FormType::class]); | ||
|
|
||
| $services->set('elao.form_translation.extension.collection_type_extension', CollectionTypeExtension::class) | ||
| ->parent('elao.form_translation.extension.tree_aware_extension') | ||
| ->tag('form.type_extension', ['extended-type' => CollectionType::class]); | ||
|
|
||
| $services->set('elao.form_translation.extension.button_type_extension', ButtonTypeExtension::class) | ||
| ->parent('elao.form_translation.extension.tree_aware_extension') | ||
| ->tag('form.type_extension', ['extended-type' => ButtonType::class]); | ||
|
|
||
| $services->set('elao.form_translation.extension.choice_type_extension', ChoiceTypeExtension::class) | ||
| ->parent('elao.form_translation.extension.tree_aware_extension') | ||
| ->tag('form.type_extension', ['extended-type' => ChoiceType::class]); | ||
| }; |
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| <?php | ||
|
|
||
| /* | ||
| * This file is part of the ElaoFormTranslation bundle. | ||
| * | ||
| * Copyright (C) Elao | ||
| * | ||
| * @author Elao <contact@elao.com> | ||
| */ | ||
|
|
||
| use Elao\Bundle\FormTranslationBundle\Builders\FormKeyBuilder; | ||
| use Elao\Bundle\FormTranslationBundle\Builders\FormTreeBuilder; | ||
| use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator; | ||
|
|
||
| return static function (ContainerConfigurator $container): void { | ||
| $services = $container->services(); | ||
|
|
||
| $services->set('elao.form_translation.tree_builder', FormTreeBuilder::class); | ||
|
|
||
| $services->set('elao.form_translation.key_builder', FormKeyBuilder::class); | ||
| }; |
This file was deleted.

Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Linting is usually run on the highest supported PHP version. Is this change from
8.3to8.2intentional? (8.3+ would catch recent deprecations better)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.