Skip to content

Commit

Permalink
Fix compatibility with Symfony 5
Browse files Browse the repository at this point in the history
  • Loading branch information
isometriks committed Aug 3, 2020
1 parent 9bc86cc commit c988bac
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Form/Extension/Spam/Type/FormTypeHoneypotExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public function configureOptions(OptionsResolver $resolver)
/**
* @inheritdoc
*/
public static function getExtendedTypes()
public static function getExtendedTypes(): iterable
{
return [
FormType::class,
Expand Down
2 changes: 1 addition & 1 deletion Form/Extension/Spam/Type/FormTypeTimedSpamExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public function configureOptions(OptionsResolver $resolver)
/**
* @inheritdoc
*/
public static function getExtendedTypes()
public static function getExtendedTypes(): iterable
{
return [
FormType::class,
Expand Down
2 changes: 1 addition & 1 deletion Resources/config/honeypot.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<services>
<service id="isometriks_spam.form.extension.type.honeypot" class="Isometriks\Bundle\SpamBundle\Form\Extension\Spam\Type\FormTypeHoneypotExtension">
<tag name="form.type_extension" extended-type="Symfony\Component\Form\Extension\Core\Type\FormType" />
<argument type="service" id="translator" on-invalid="ignore" />
<argument type="service" id="translator" on-invalid="null" />
<argument>%validator.translation_domain%</argument>
</service>
</services>
Expand Down
2 changes: 1 addition & 1 deletion Resources/config/timed.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<service id="isometriks_spam.form.extension.type.timed_spam" class="Isometriks\Bundle\SpamBundle\Form\Extension\Spam\Type\FormTypeTimedSpamExtension">
<tag name="form.type_extension" extended-type="Symfony\Component\Form\Extension\Core\Type\FormType" />
<argument type="service" id="isometriks_spam.form.extension.provider.timed_spam" />
<argument type="service" id="translator" on-invalid="ignore" />
<argument type="service" id="translator" on-invalid="null" />
<argument>%validator.translation_domain%</argument>
</service>
</services>
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "Provides spam protection for Symfony3 forms",
"keywords": ["spam", "symfony3"],
"require": {
"symfony/form": "~3.0|~4.0"
"symfony/form": "~3.0|~4.0|~5.0"
},
"authors": [
{
Expand Down

0 comments on commit c988bac

Please sign in to comment.