Skip to content

Commit ef1bc82

Browse files
committed
Fix code syntax
1 parent 622ce97 commit ef1bc82

6 files changed

Lines changed: 5 additions & 9 deletions

File tree

src/Form/EventListener/CrudAutocompleteSubscriber.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public static function getSubscribedEvents(): array
3434
/**
3535
* @return void
3636
*/
37-
public function preSetData(FormEvent $event)
37+
public function preSetData(FormEvent $event): void
3838
{
3939
$form = $event->getForm();
4040
$data = $event->getData() ?? [];
@@ -72,7 +72,7 @@ public function preSetData(FormEvent $event)
7272
/**
7373
* @return void
7474
*/
75-
public function preSubmit(FormEvent $event)
75+
public function preSubmit(FormEvent $event): void
7676
{
7777
$data = $event->getData();
7878
$form = $event->getForm();

src/Form/EventListener/FormLayoutSubscriber.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public static function getSubscribedEvents(): array
3030
*
3131
* @return void
3232
*/
33-
public function handleLayoutErrors(FormEvent $event)
33+
public function handleLayoutErrors(FormEvent $event): void
3434
{
3535
$this->handleTabErrors($event);
3636
$this->handleFieldsetErrors($event);

tests/Functional/Apps/DefaultApp/src/DataFixtures/AppFixtures.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public function load(ObjectManager $manager): void
9191
$manager->flush();
9292
}
9393

94-
private function addAssociationFixtures(ObjectManager $manager)
94+
private function addAssociationFixtures(ObjectManager $manager): void
9595
{
9696
// customer <-Many-To-Many-> Bill
9797

tests/Unit/Dto/DashboardDtoTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
<?php
22

3-
declare(strict_types=1);
4-
53
namespace EasyCorp\Bundle\EasyAdminBundle\Tests\Unit\Dto;
64

75
use EasyCorp\Bundle\EasyAdminBundle\Config\Dashboard;

tests/Unit/EventListener/AdminRouterSubscriberTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public static function controllerDataProvider(): iterable
4444
yield ['Some\\Class'];
4545
yield [['Some\\Class', 'method']];
4646
yield [new class {
47-
public function __invoke()
47+
public function __invoke(): void
4848
{
4949
}
5050
}];

tests/Unit/Translation/EntityTranslationIdGeneratorTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
<?php
22

3-
declare(strict_types=1);
4-
53
namespace EasyCorp\Bundle\EasyAdminBundle\Tests\Unit\Translation;
64

75
use EasyCorp\Bundle\EasyAdminBundle\Translation\EntityTranslationIdGenerator;

0 commit comments

Comments
 (0)