Skip to content

Commit

Permalink
Support Symfony 5
Browse files Browse the repository at this point in the history
  • Loading branch information
yguedidi committed Dec 24, 2023
1 parent a8ed71a commit 3d21a48
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
matrix:
php: [7.4, 8.0, 8.1, 8.2]
symfony-version: [4.4.*]
symfony-version: [4.4.*, 5.4.*]
composer-flags: ['', '--prefer-lowest']
fail-fast: true
steps:
Expand Down
4 changes: 2 additions & 2 deletions Form/SpecTypeExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ public function buildForm(FormBuilderInterface $builder, array $options)
/**
* {@inheritDoc}
*/
public function getExtendedType()
public function getExtendedTypes()
{
return FormType::class;
return [FormType::class];
}

private function getTransformer($transformer, $specClass, array $specOptions)
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@
"require": {
"php": ">=7.4",
"wallabag/rulerz": "dev-master",
"symfony/validator": "^4.4",
"symfony/form": "^4.4"
"symfony/validator": "^4.4|^5.4",
"symfony/form": "^4.4|^5.4"
},
"require-dev": {
"phpunit/phpunit": "^8.5.14",
"symfony/phpunit-bridge": "^4.4",
"symfony/phpunit-bridge": "^4.4|^5.4",
"liip/rmt": "^1.2"
}
}

0 comments on commit 3d21a48

Please sign in to comment.