Skip to content
This repository has been archived by the owner on Jul 28, 2022. It is now read-only.

Commit

Permalink
Add support for Symfony 6 (#367)
Browse files Browse the repository at this point in the history
  • Loading branch information
jordisala1991 committed Sep 19, 2021
1 parent 00415db commit f6260cd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@
],
"require": {
"php": "^7.3 || ^8.0",
"symfony/config": "^3.4 || ^4.4 || ^5.0",
"symfony/dependency-injection": "^3.4 || ^4.4 || ^5.0",
"symfony/form": "^3.4 || ^4.4 || ^5.0",
"symfony/http-kernel": "^3.4 || ^4.4 || ^5.0"
"symfony/config": "^3.4 || ^4.4 || ^5.3 || ^6.0",
"symfony/dependency-injection": "^3.4 || ^4.4 || ^5.3 || ^6.0",
"symfony/form": "^3.4 || ^4.4 || ^5.3 || ^6.0",
"symfony/http-kernel": "^3.4 || ^4.4 || ^5.3 || ^6.0"
},
"require-dev": {
"doctrine/orm": "^2.4",
"symfony/phpunit-bridge": "^5.1.8"
"symfony/phpunit-bridge": "^5.3 || ^6.0"
},
"config": {
"sort-packages": true
Expand Down
5 changes: 4 additions & 1 deletion tests/Datagrid/DatagridTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
use Symfony\Component\Form\Form;
use Symfony\Component\Form\FormBuilder;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\Form\FormFactoryInterface;

class TestEntity
Expand Down Expand Up @@ -78,8 +79,10 @@ protected function setUp(): void

$this->formBuilder
->method('add')
->willReturnCallback(function ($name, $type, $options) use ($eventDispatcher, $formFactory): void {
->willReturnCallback(function ($name, $type, $options) use ($eventDispatcher, $formFactory): FormBuilderInterface {
$this->formTypes[$name] = new FormBuilder($name, TestEntity::class, $eventDispatcher, $formFactory, $options);

return $this->formBuilder;
});

$form = $this->createMock(Form::class);
Expand Down

0 comments on commit f6260cd

Please sign in to comment.