Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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