Skip to content

Commit

Permalink
[Rector] Applied all Symfony 5.x rectors to the production codebase
Browse files Browse the repository at this point in the history
Applied rules:
 * AddReturnTypeDeclarationRector
 * AnnotationToAttributeRector
  • Loading branch information
alongosz committed Aug 6, 2024
1 parent 1cfaf7d commit f77bb98
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
5 changes: 1 addition & 4 deletions src/bundle/Form/Data/SearchData.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,8 @@ class SearchData
{
/**
* @var int
*
* @Assert\Range(
* max = 1000
* )
*/
#[Assert\Range(max: 1000)]
private $limit;

/** @var int */
Expand Down
2 changes: 1 addition & 1 deletion src/bundle/Form/Type/ContentTypeChoiceType.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function __construct(
$this->contentTypeChoiceLoader = $contentTypeChoiceLoader;
}

public function getParent()
public function getParent(): ?string
{
return ChoiceType::class;
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/View/SearchViewFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function __construct(
$this->urlGenerator = $urlGenerator;
}

public static function getSubscribedEvents()
public static function getSubscribedEvents(): array
{
return [ViewEvents::FILTER_BUILDER_PARAMETERS => 'handleSearchForm'];
}
Expand Down

0 comments on commit f77bb98

Please sign in to comment.