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:
 * AddReturnTypeDeclarationBasedOnParentClassMethodRector
 * AddReturnTypeDeclarationRector
  • Loading branch information
alongosz committed Jul 19, 2024
1 parent 7a20190 commit 03aa73a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/lib/ContentView/QueryResultsInjector.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function __construct(QueryFieldServiceInterface $queryFieldService, array
$this->requestStack = $requestStack;
}

public static function getSubscribedEvents()
public static function getSubscribedEvents(): array
{
return [ViewEvents::FILTER_VIEW_PARAMETERS => 'injectQueryResults'];
}
Expand Down
4 changes: 2 additions & 2 deletions src/lib/FieldType/Form/QueryFieldFormType.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ public function getName()
return $this->getBlockPrefix();
}

public function getBlockPrefix()
public function getBlockPrefix(): string
{
return 'ezplatform_fieldtype_query';
}

public function getParent()
public function getParent(): ?string
{
return TextType::class;
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/FieldType/Query/Value.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function __construct($text = '')
/**
* @see \Ibexa\Core\FieldType\Value
*/
public function __toString()
public function __toString(): string
{
return (string)$this->text;
}
Expand Down

0 comments on commit 03aa73a

Please sign in to comment.