Skip to content

Commit

Permalink
Merge pull request #40 from relthyg/symfony7
Browse files Browse the repository at this point in the history
  • Loading branch information
eymengunay authored May 16, 2024
2 parents b481daa + c55239b commit 8215937
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class Configuration implements ConfigurationInterface
/**
* {@inheritDoc}
*/
public function getConfigTreeBuilder()
public function getConfigTreeBuilder(): TreeBuilder
{
if (\method_exists(TreeBuilder::class, 'getRootNode')) {
// Symfony 4.1+
Expand Down
2 changes: 1 addition & 1 deletion EoHoneypotBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

class EoHoneypotBundle extends Bundle
{
public function build(ContainerBuilder $container)
public function build(ContainerBuilder $container): void
{
parent::build($container);

Expand Down
6 changes: 3 additions & 3 deletions Form/Type/HoneypotType.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public function __construct(RequestStack $requestStack, HoneypotManager $honeypo
/**
* {@inheritdoc}
*/
public function buildForm(FormBuilderInterface $builder, array $options)
public function buildForm(FormBuilderInterface $builder, array $options): void
{
// Closure $this support was removed temporarily from PHP 5.3
// and re-introduced with 5.4. This small hack is here for 5.3 compability.
Expand Down Expand Up @@ -94,7 +94,7 @@ public function buildForm(FormBuilderInterface $builder, array $options)
/**
* {@inheritdoc}
*/
public function configureOptions(OptionsResolver $resolver)
public function configureOptions(OptionsResolver $resolver): void
{
$resolver->setDefaults(array(
'required' => false,
Expand All @@ -118,7 +118,7 @@ public function configureOptions(OptionsResolver $resolver)
/**
* {@inheritdoc}
*/
public function getParent()
public function getParent(): ?string
{
return 'Symfony\Component\Form\Extension\Core\Type\TextType';
}
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
}
],
"require": {
"symfony/framework-bundle": "~5.0 | ~6.0"
"symfony/framework-bundle": "~5.0 | ~6.0 | ~7.0"
},
"require-dev": {
"eo/symfony-test-edition": "~3.0"
Expand Down

0 comments on commit 8215937

Please sign in to comment.