mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-28 09:34:59 +00:00
Rector changes return typing
This commit is contained in:
@@ -54,7 +54,7 @@ class ReportList implements ExportElementValidatedInterface, ListInterface
|
||||
|
||||
public function __construct(protected CustomFieldsGroup $customfieldsGroup, protected TranslatableStringHelper $translatableStringHelper, protected TranslatorInterface $translator, protected CustomFieldProvider $customFieldProvider, protected EntityManagerInterface $em) {}
|
||||
|
||||
public function buildForm(FormBuilderInterface $builder)
|
||||
public function buildForm(FormBuilderInterface $builder): void
|
||||
{
|
||||
$choices = array_combine($this->fields, $this->fields);
|
||||
|
||||
@@ -128,7 +128,7 @@ class ReportList implements ExportElementValidatedInterface, ListInterface
|
||||
return [FormatterInterface::TYPE_LIST];
|
||||
}
|
||||
|
||||
public function getDescription()
|
||||
public function getDescription(): string
|
||||
{
|
||||
return $this->translator->trans(
|
||||
"Generate list of report '%type%'",
|
||||
@@ -469,7 +469,7 @@ class ReportList implements ExportElementValidatedInterface, ListInterface
|
||||
*
|
||||
* @return CustomField[]
|
||||
*/
|
||||
private function getCustomFields()
|
||||
private function getCustomFields(): array
|
||||
{
|
||||
return array_filter($this->customfieldsGroup
|
||||
->getCustomFields()->toArray(), static fn (CustomField $cf) => 'title' !== $cf->getType());
|
||||
|
@@ -67,7 +67,7 @@ final class ReportVoterTest extends KernelTestCase
|
||||
$action,
|
||||
$message,
|
||||
?User $user = null,
|
||||
) {
|
||||
): void {
|
||||
$token = $this->prepareToken($user);
|
||||
$result = $this->voter->vote($token, $report, [$action]);
|
||||
$this->assertEquals($expectedResult, $result, $message);
|
||||
|
Reference in New Issue
Block a user