Skip to content

Commit

Permalink
Merge pull request #86 from symfony2admingenerator/fix-deprecation
Browse files Browse the repository at this point in the history
Fix wrong reference and fix deprecation in return type
  • Loading branch information
bobvandevijver authored May 7, 2024
2 parents c8d6d85 + dbb4023 commit 612a0a3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Form/Type/DateRangePickerType.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use Symfony\Component\Form\FormView;
use Symfony\Component\Form\FormInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
use Symfony\Component\Translation\TranslatorInterface;
use Symfony\Contracts\Translation\TranslatorInterface;

/**
* See `Resources/doc/daterange-picker/overview.md` for documentation
Expand Down
2 changes: 1 addition & 1 deletion Form/Type/TimePickerType.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function buildView(FormView $view, FormInterface $form, array $options):

}

public function configureOptions(OptionsResolver $resolver)
public function configureOptions(OptionsResolver $resolver): void
{
$resolver->setDefaults([
'widget' => 'single_text',
Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"symfony/options-resolver": "~4.4|~5.4|~6.2",
"symfony/property-access": "~4.4|~5.4|~6.2",
"symfony/translation": "~4.4|~5.4|~6.2",
"symfony/translation-contracts": "~1.0|~2.0|~3.0",
"symfony/twig-bridge": "~4.4|~5.4|~6.2",
"symfony/validator": "~4.4|~5.4|~6.2",
"twig/twig": "^2.15.3||^3.4.3",
Expand Down

0 comments on commit 612a0a3

Please sign in to comment.