Skip to content

Commit f77bb98

Browse files
committed
[Rector] Applied all Symfony 5.x rectors to the production codebase
Applied rules: * AddReturnTypeDeclarationRector * AnnotationToAttributeRector
1 parent 1cfaf7d commit f77bb98

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

src/bundle/Form/Data/SearchData.php

+1-4
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,8 @@ class SearchData
1818
{
1919
/**
2020
* @var int
21-
*
22-
* @Assert\Range(
23-
* max = 1000
24-
* )
2521
*/
22+
#[Assert\Range(max: 1000)]
2623
private $limit;
2724

2825
/** @var int */

src/bundle/Form/Type/ContentTypeChoiceType.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function __construct(
3030
$this->contentTypeChoiceLoader = $contentTypeChoiceLoader;
3131
}
3232

33-
public function getParent()
33+
public function getParent(): ?string
3434
{
3535
return ChoiceType::class;
3636
}

src/lib/View/SearchViewFilter.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function __construct(
5151
$this->urlGenerator = $urlGenerator;
5252
}
5353

54-
public static function getSubscribedEvents()
54+
public static function getSubscribedEvents(): array
5555
{
5656
return [ViewEvents::FILTER_BUILDER_PARAMETERS => 'handleSearchForm'];
5757
}

0 commit comments

Comments
 (0)