mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 09:35:49 +02:00
Added some return typehints to functions who missed them
This commit is contained in:
parent
7bd6cd7cec
commit
028307b63c
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||||
|
|
|
@ -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)),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue