Added some return typehints to functions who missed them

This commit is contained in:
Jan Böhmer 2024-06-19 23:56:08 +02:00
parent 7bd6cd7cec
commit 028307b63c
2 changed files with 2 additions and 2 deletions

View file

@ -46,7 +46,7 @@ final class HandleAttachmentsUploadsProcessor implements ProcessorInterface
} }
public function process(mixed $data, Operation $operation, array $uriVariables = [], array $context = []) public function process(mixed $data, Operation $operation, array $uriVariables = [], array $context = []): mixed
{ {
if ($operation instanceof DeleteOperationInterface) { if ($operation instanceof DeleteOperationInterface) {
return $this->removeProcessor->process($data, $operation, $uriVariables, $context); return $this->removeProcessor->process($data, $operation, $uriVariables, $context);

View file

@ -35,7 +35,7 @@ class SandboxedLabelExtension extends AbstractExtension
} }
public function getFunctions() public function getFunctions(): array
{ {
return [ return [
new TwigFunction('placeholder', fn(string $text, object $label_target) => $this->labelTextReplacer->handlePlaceholderOrReturnNull($text, $label_target)), new TwigFunction('placeholder', fn(string $text, object $label_target) => $this->labelTextReplacer->handlePlaceholderOrReturnNull($text, $label_target)),